T - the generic type of the upper bound.public class RuntimeGenericType<T> extends GenericTypeImpl<T>
GenericTypeImpl with the ability to bind and resolve TypeVariables at runtime.GenericTypeBuilder.build()GenericTypeImpl.ClassBounds| Modifier and Type | Field and Description |
|---|---|
private Map<GenericTypeVariable<?>,Type> |
variable2typeMap |
NO_TYPES| Constructor and Description |
|---|
RuntimeGenericType(Type valueType,
GenericType<?> definingType,
Map<GenericTypeVariable<?>,Type> variable2typeMap)
The constructor.
|
RuntimeGenericType(Type type,
Map<GenericTypeVariable<?>,Type> variable2typeMap)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractGenericType<T> |
create(Type genericType,
GenericType<?> genericDefiningType)
This method creates a new instance of this class.
|
private Type |
resolveBoundTypeVariable(TypeVariable<?> typeVariable,
Type fallback) |
create, getArrayClass, getAssignmentClass, getClassBounds, getComponentType, getDefiningType, getKeyType, getRetrievalClass, getType, getTypeArgument, getTypeArgumentCount, initequals, getDeclarationIndex, getGenericDeclarations, hashCode, isAssignableFrom, isCollection, isMap, resolveTypeVariable, toString, toStringSimple, wrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNameprivate final Map<GenericTypeVariable<?>,Type> variable2typeMap
public RuntimeGenericType(Type type, Map<GenericTypeVariable<?>,Type> variable2typeMap)
type - is the type.variable2typeMap - a Map mapping the runtime bound TypeVariables.public RuntimeGenericType(Type valueType, GenericType<?> definingType, Map<GenericTypeVariable<?>,Type> variable2typeMap)
valueType - is the value-type.definingType - is the defining-type.variable2typeMap - a Map mapping the runtime bound TypeVariables.protected AbstractGenericType<T> create(Type genericType, GenericType<?> genericDefiningType)
GenericTypeImplcreate in class GenericTypeImpl<T>genericType - is the value-type.genericDefiningType - is the defining-type.GenericType instance.private Type resolveBoundTypeVariable(TypeVariable<?> typeVariable, Type fallback)
Copyright © 2001–2019 mmm-Team. All rights reserved.