Class CompoundTypeEnvironment
- java.lang.Object
-
- org.hibernate.annotations.common.reflection.java.generics.CompoundTypeEnvironment
-
- All Implemented Interfaces:
TypeEnvironment
public final class CompoundTypeEnvironment extends Object implements TypeEnvironment
A composition of twoTypeEnvironmentfunctions.
-
-
Method Summary
All Methods Static 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.static TypeEnvironmentcreate(TypeEnvironment f, TypeEnvironment g)booleanequals(Object o)inthashCode()StringtoString()
-
-
-
Method Detail
-
create
public static TypeEnvironment create(TypeEnvironment f, TypeEnvironment g)
-
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.
-
-