Class TypeRef<T>

java.lang.Object
com.jayway.jsonpath.TypeRef<T>
Type Parameters:
T -
All Implemented Interfaces:
Comparable<TypeRef<T>>

public abstract class TypeRef<T> extends Object implements Comparable<TypeRef<T>>
Used to specify generic type information in ReadContext TypeRef ref = new TypeRefinvalid input: '<'List>() { };
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Type
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The only reason we define this method (and require implementation of Comparable) is to prevent constructing a reference without type information.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      protected final Type type
  • Constructor Details

    • TypeRef

      protected TypeRef()
  • Method Details

    • getType

      public Type getType()
    • compareTo

      public 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.
      Specified by:
      compareTo in interface Comparable<T>