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.Serializable
Type 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.Type
definedType
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypeLiteral()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
private java.lang.reflect.Type
getDefinedType(java.lang.Class<?> clazz)
java.lang.Class<T>
getRawType()
java.lang.reflect.Type
getType()
int
hashCode()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-