Class TypeBindings

java.lang.Object
com.fasterxml.jackson.jr.type.TypeBindings
All Implemented Interfaces:
Serializable

public final class TypeBindings extends Object implements Serializable
Helper class used for storing binding of local type variables to matching resolved types, in context of a single class.
See Also:
  • Method Details

    • emptyBindings

      public static TypeBindings emptyBindings()
    • create

      public static TypeBindings create(Class<?> erasedType, List<ResolvedType> typeList)
    • create

      public static TypeBindings create(Class<?> erasedType, ResolvedType[] types)
    • withUnboundVariable

      public TypeBindings withUnboundVariable(String name)
      Method for creating an instance that has same bindings as this object, plus an indicator for additional type variable that may be unbound within this context; this is needed to resolve recursive self-references.
    • findBoundType

      public ResolvedType findBoundType(String name)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • getBoundName

      public String getBoundName(int index)
    • getBoundType

      public ResolvedType getBoundType(int index)
    • getTypeParameters

      public List<ResolvedType> getTypeParameters()
    • hasUnbound

      public boolean hasUnbound(String name)
      Since:
      2.3
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • typeParameterArray

      protected ResolvedType[] typeParameterArray()