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

pack-priv Class TypeFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.Array, .GenericArrayType, .ParameterizedType, .Type, java.util.Arrays

This class instances our own ParameterizedTypes and GenericArrayTypes. These are not supposed to be mixed with Java's implementations - beware of equality/identity problems.
Author
Paolo Perrotta

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Type
createArrayType(Type componentType)

private static GenericArrayType
createGenericArrayType(final Type componentType)

pack-priv static ParameterizedType
createParameterizedType(final Type rawType, final Type[] substTypeArgs, final Type ownerType)

private static boolean
private static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TypeFactoryback to summary
pack-priv TypeFactory()

Method Detail

createArrayTypeback to summary
pack-priv static Type createArrayType(Type componentType)
createGenericArrayTypeback to summary
private static GenericArrayType createGenericArrayType(final Type componentType)
createParameterizedTypeback to summary
pack-priv static ParameterizedType createParameterizedType(final Type rawType, final Type[] substTypeArgs, final Type ownerType)
safeEqualsback to summary
private static boolean safeEquals(Type t1, Type t2)
safeHashCodeback to summary
private static int safeHashCode(Object o)