Package com.fasterxml.jackson.jr.type
Class TypeBindings
- java.lang.Object
-
- com.fasterxml.jackson.jr.type.TypeBindings
-
- All Implemented Interfaces:
java.io.Serializable
public final class TypeBindings extends java.lang.Object implements java.io.Serializable
Helper class used for storing binding of local type variables to matching resolved types, in context of a single class.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeBindings
create(java.lang.Class<?> erasedType, ResolvedType[] types)
static TypeBindings
create(java.lang.Class<?> erasedType, java.util.List<ResolvedType> typeList)
static TypeBindings
emptyBindings()
boolean
equals(java.lang.Object o)
ResolvedType
findBoundType(java.lang.String name)
java.lang.String
getBoundName(int index)
ResolvedType
getBoundType(int index)
java.util.List<ResolvedType>
getTypeParameters()
int
hashCode()
boolean
hasUnbound(java.lang.String name)
boolean
isEmpty()
int
size()
java.lang.String
toString()
protected ResolvedType[]
typeParameterArray()
TypeBindings
withUnboundVariable(java.lang.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.
-
-
-
Method Detail
-
emptyBindings
public static TypeBindings emptyBindings()
-
create
public static TypeBindings create(java.lang.Class<?> erasedType, java.util.List<ResolvedType> typeList)
-
create
public static TypeBindings create(java.lang.Class<?> erasedType, ResolvedType[] types)
-
withUnboundVariable
public TypeBindings withUnboundVariable(java.lang.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(java.lang.String name)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
getBoundName
public java.lang.String getBoundName(int index)
-
getBoundType
public ResolvedType getBoundType(int index)
-
getTypeParameters
public java.util.List<ResolvedType> getTypeParameters()
-
hasUnbound
public boolean hasUnbound(java.lang.String name)
- Since:
- 2.3
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
typeParameterArray
protected ResolvedType[] typeParameterArray()
-
-