AeroGear Android Library 1.4.0
-
public class ClassUtils
extends Object
Utilities for working with classes, reflection, etc
-
-
Constructor Summary
Constructors
| Constructor and Description |
ClassUtils() |
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
static <T> Class<T[]> |
asArrayClass(Class<T> klass)
This will return a class of the type T[] from a given class.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ClassUtils
public ClassUtils()
-
Method Detail
-
asArrayClass
public static <T> Class<T[]> asArrayClass(Class<T> klass)
This will return a class of the type T[] from a given class. When we read
from the AG pipe, Java needs a reference to a generic array type.
- Type Parameters:
T - the type of the class.- Parameters:
klass - a class to turn into an array class
- Returns:
- an array of klass with a length of 1
AeroGear Android Library 1.4.0
Copyright © 2014 JBoss by Red Hat. All rights reserved.