Class IdentityTypeEnvironment
- java.lang.Object
-
- org.hibernate.annotations.common.reflection.java.generics.IdentityTypeEnvironment
-
- All Implemented Interfaces:
TypeEnvironment
public final class IdentityTypeEnvironment extends Object implements TypeEnvironment
Substitutes aTypefor itself.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeEnvironmentINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Typebind(Type type)Binds as many generic components of the given type as possible in this context.StringtoString()
-
-
-
Field Detail
-
INSTANCE
public static final TypeEnvironment INSTANCE
-
-
Method Detail
-
bind
public Type bind(Type type)
Description copied from interface:TypeEnvironmentBinds as many generic components of the given type as possible in this context. Warning: if the returnedTypeis aClass, then it's guaranteed to be a regular JavaClass. In all other cases, this method might return a custom implementation of some interface that extendsType. Be sure not to mix these objects with Java's implementations ofTypeto avoid potential identity problems. This class does not support bindings involving inner classes or upper/lower bounds.- Specified by:
bindin interfaceTypeEnvironment- Returns:
- a type where the generic arguments have been replaced by raw classes whenever this is possible.
-
-