Class TypeReference<T>

java.lang.Object
org.drasyl.util.TypeReference<T>
Type Parameters:
T - the type we need the full generic type information from

public abstract class TypeReference<T> extends Object
This class is used for obtaining full generics type information by sub-classing.

Adapted from http://gafter.blogspot.com/2006/12/super-type-tokens.html

  • Constructor Details

    • TypeReference

      protected TypeReference()
  • Method Details

    • getType

      public Type getType()
      Gets the referenced type.