public class TypeInformation<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
TypeInformation<?> |
buildGenericType(int index)
Builds a TypeInformation object for the underlying generic type at the given index.
|
boolean |
equals(Object other) |
Class<T> |
getClazz() |
Class<?> |
getGenericClass(int index) |
boolean |
isOfType(Class<?> type)
Returns whether this type is equal to or a child of the given type.
|
static <T> TypeInformation<T> |
of(Class<T> clazz) |
static <T> TypeInformation<T> |
of(Class<T> clazz,
Type genericType) |
String |
toString() |
public static <T> TypeInformation<T> of(Class<T> clazz)
public static <T> TypeInformation<T> of(Class<T> clazz, Type genericType)
public boolean isOfType(Class<?> type)
Examples:
TypeInformation.of(Integer.class).isOfType(Number.class); // true
TypeInformation.of(String.class).isOfType(Number.class); // false
type - the type to checkpublic TypeInformation<?> buildGenericType(int index)
List<Iterable<Double>>,
a TypeInformation object for Iterable<Double> is returned.index - the index of the generic type to useCopyright © 2016–2018 The AuthMe Team. All rights reserved.