| Modifier and Type | Method and Description |
|---|---|
static ParameterizedType |
listOf(Type genericType)
Creates a parameterized type definition for a generic list
|
static ParameterizedType |
mapOf(Type keyType,
Type valueType)
Creates a parameterrized type definition for a generic map
|
static ParameterizedType |
of(Class<?> rawType,
Type... typeParameters)
Creates a parameterized type definition for a rawtype
|
static ParameterizedType |
ofOwnerType(Type ownerType,
Class<?> rawType,
Type... typeParameters)
Creates a parameterized type definition for a owned rawtype.
|
static ParameterizedType |
optionalOf(Type genericType)
Creates a parameterized type definition for a generic optional
|
static ParameterizedType |
setOf(Type genericType)
Creates a parameterized type definition for a generic set
|
public static ParameterizedType listOf(Type genericType)
genericType - the type of the entries of the listParameterizedTypepublic static ParameterizedType setOf(Type genericType)
genericType - the type of teh entries in the setParameterizedTypepublic static ParameterizedType mapOf(Type keyType, Type valueType)
keyType - the type of the keys of the mapvalueType - the type of the values of the mapParameterizedTypepublic static ParameterizedType optionalOf(Type genericType)
genericType - the type of teh entries in the setParameterizedTypepublic static ParameterizedType of(Class<?> rawType, Type... typeParameters)
rawType - the base typetypeParameters - the generic type parametersParameterizedTypepublic static ParameterizedType ofOwnerType(Type ownerType, Class<?> rawType, Type... typeParameters)
ownerType - the type that owns the rawtyperawType - the base typetypeParameters - the generic type parametersParameterizedTypeCopyright © 2017 DevCon5 GmbH. All rights reserved.