Class TypeReference<T>

java.lang.Object
org.simpleflatmapper.util.TypeReference<T>
Type Parameters:
T - the targeted type

public abstract class TypeReference<T> extends Object
That class is a way to define generic type without implementing the ParameterizedType.
By defining an anonymous instance of it the new class has access to the actual type argument T that the method getType() returns;
new TypeReference<Tuple2<String,Long>>(){}
  • Constructor Details

    • TypeReference

      protected TypeReference()
  • Method Details

    • getType

      public Type getType()