public class Types extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
boxedClass(Class<?> type) |
static Type |
boxedType(Type type)
Gets the boxed type of a class
|
static <C extends Class<?>> |
buildClassNameMap(Iterable<C> set)
Builds (class name -> class) map for given classes.
|
static boolean |
containsUnresolvedTypeVariableOrWildcard(Type type) |
static Type |
getCanonicalType(Class<?> clazz)
Returns a canonical type for a given class.
|
static Type |
getCanonicalType(Type type) |
static Set<Class<?>> |
getRawTypes(Set<Type> types) |
static String |
getTypeId(Type type) |
public static Type boxedType(Type type)
type
- The typepublic static Type getCanonicalType(Class<?> clazz)
ParameterizedType
(with unresolved type
variables) is resolved.
If the class is an array then the component type of the array is canonicalized
Otherwise, the class is returned.public static boolean containsUnresolvedTypeVariableOrWildcard(Type type)
Copyright © 2014 Seam Framework. All rights reserved.