T - The typepublic abstract class TypeRef<T> extends Object implements Comparable<TypeRef<T>>
TypeRef ref = new TypeRefCode is heavily inspired by (some might even say copied), from the JsonPath project.>() { };
| Modifier | Constructor and Description |
|---|---|
protected |
TypeRef() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TypeRef<T> ignored)
The only reason we define this method (and require implementation
of
Comparable) is to prevent constructing a
reference without type information. |
Type |
getType() |
Class<T> |
getTypeAsClass() |
Copyright © 2010–2022. All rights reserved.