T - public abstract class TypeRef<T> extends java.lang.Object implements java.lang.Comparable<TypeRef<T>>
ReadContext
TypeRef ref = new TypeRef>() { };
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Type |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
TypeRef() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TypeRef<T> o)
The only reason we define this method (and require implementation
of
Comparable) is to prevent constructing a
reference without type information. |
java.lang.reflect.Type |
getType() |