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 inReadContextTypeRef ref = new TypeRef- >() { };
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Typetype
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(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.TypegetType()
-