Package com.jayway.jsonpath
Class TypeRef<T>
- java.lang.Object
-
- com.jayway.jsonpath.TypeRef<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.lang.Comparable<TypeRef<T>>
public abstract class TypeRef<T> extends java.lang.Object implements java.lang.Comparable<TypeRef<T>>
Used to specify generic type information inReadContext
TypeRef ref = new TypeRef
- >() { };
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Type
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypeRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TypeRef<T> o)
The only reason we define this method (and require implementation ofComparable
) is to prevent constructing a reference without type information.java.lang.reflect.Type
getType()
-