org.fest.reflect.reference
Class TypeRef<T>
java.lang.Object
org.fest.reflect.reference.TypeRef<T>
- Type Parameters:
T
- the generic type in this reference.
public abstract class TypeRef<T>
- extends Object
Understands a references a generic type. Based on Neal Gafter's
TypeReference
.
- Since:
- 1.1
- Author:
- crazybob@google.com (Bob Lee), Alex Ruiz
Method Summary |
Class<?> |
rawType()
Returns the raw type of the generic type in this reference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeRef
public TypeRef()
- Creates a new
TypeRef
.
- Throws:
ReflectionError
- if the generic type of this reference is missing type parameter.
rawType
public final Class<?> rawType()
- Returns the raw type of the generic type in this reference.
- Returns:
- the raw type of the generic type in this reference.
Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.