Top Description Fields Constructors Methods
org.hibernate.annotations.common.reflection.java.generics

public Class IdentityTypeEnvironment

extends Object
implements TypeEnvironment
Class Inheritance
All Implemented Interfaces
org.hibernate.annotations.common.reflection.java.generics.TypeEnvironment
Imports
java.lang.reflect.Type

Substitutes a Type for itself.
Authors
Davide Marchignoli, Paolo Perrotta

Field Summary

Modifier and TypeField and Description
public static final TypeEnvironment

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Type
bind(Type type)

Implements org.hibernate.annotations.common.reflection.java.generics.TypeEnvironment.bind.

Binds as many generic components of the given type as possible in this context.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
public static final TypeEnvironment INSTANCE

Constructor Detail

IdentityTypeEnvironmentback to summary
private IdentityTypeEnvironment()

Method Detail

bindback to summary
public Type bind(Type type)

Implements org.hibernate.annotations.common.reflection.java.generics.TypeEnvironment.bind.

Doc from org.hibernate.annotations.common.reflection.java.generics.TypeEnvironment.bind.

Binds as many generic components of the given type as possible in this context.

Warning

if the returned Type is a Class, then it's guaranteed to be a regular Java Class. In all other cases, this method might return a custom implementation of some interface that extends Type. Be sure not to mix these objects with Java's implementations of Type to avoid potential identity problems.

This class does not support bindings involving inner classes or upper/lower bounds.

Returns:Type

a type where the generic arguments have been replaced by raw classes whenever this is possible.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.