org.squirrelframework.foundation.util
Class TypeReference<T>

java.lang.Object
  extended by org.squirrelframework.foundation.util.TypeReference<T>
Type Parameters:
T - Generic Type

public abstract class TypeReference<T>
extends Object

Author:
Henry He
See Also:
Super Type Tokens

Constructor Summary
protected TypeReference()
           
 
Method Summary
 Class<T> getRawType()
          Returns the raw type of T.
 Type getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeReference

protected TypeReference()
Method Detail

getType

public Type getType()

getRawType

public final Class<T> getRawType()
Returns the raw type of T. Formally speaking, if T is returned by Method.getGenericReturnType(), the raw type is what's returned by Method.getReturnType() of the same method object. Specifically:



Copyright © 2013-2014. All Rights Reserved.