java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.TypeToken<T>
Type Parameters:
T - The type that this type token captures

public class TypeToken<T> extends Object
TypeToken captures the type of a generic class including its type parameters.

Usage:

 TypeToken<List<Double>> tt = new TypeToken<List<Double>>{};
 Type type = tt.getType();
 
  • Constructor Details

    • TypeToken

      public TypeToken()
  • Method Details

    • getType

      public final Type getType()
      Returns the represented type.