Package javax.enterprise.util
Class TypeLiteral<T>
- java.lang.Object
-
- javax.enterprise.util.TypeLiteral<T>
-
- Type Parameters:
T- wrapped type
- All Implemented Interfaces:
java.io.Serializable
public abstract class TypeLiteral<T> extends java.lang.Object implements java.io.SerializableType literal implementation.- Version:
- $Rev: 905874 $ $Date: 2010-02-03 04:01:05 +0100 (Wed, 03 Feb 2010) $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.TypedefinedTypeprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeLiteral()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)private java.lang.reflect.TypegetDefinedType(java.lang.Class<?> clazz)java.lang.Class<T>getRawType()java.lang.reflect.TypegetType()inthashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
definedType
private java.lang.reflect.Type definedType
-
-
Method Detail
-
getType
public final java.lang.reflect.Type getType()
-
getRawType
public final java.lang.Class<T> getRawType()
-
getDefinedType
private java.lang.reflect.Type getDefinedType(java.lang.Class<?> clazz)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-