-
- All Implemented Interfaces:
-
kotlin.Comparable
public abstract class TypeReference<T extends Object> implements Comparable<TypeReference<T>>
This generic abstract class is used for obtaining full generics type information by sub-classing.
Class is based on ideas from Jackson TypeReference
Usage is by sub-classing: here is one way to instantiate reference to generic type
List<Integer>
:TypeReference ref = new TypeReference<List<Integer>>() { };