public final class TypeBindings extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static TypeBindings |
create(Class<?> erasedType,
List<ResolvedType> typeList) |
static TypeBindings |
create(Class<?> erasedType,
ResolvedType[] types) |
static TypeBindings |
emptyBindings() |
boolean |
equals(Object o) |
ResolvedType |
findBoundType(String name) |
String |
getBoundName(int index) |
ResolvedType |
getBoundType(int index) |
List<ResolvedType> |
getTypeParameters() |
int |
hashCode() |
boolean |
hasUnbound(String name) |
boolean |
isEmpty() |
int |
size() |
String |
toString() |
protected ResolvedType[] |
typeParameterArray() |
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.
|
public static TypeBindings emptyBindings()
public static TypeBindings create(Class<?> erasedType, List<ResolvedType> typeList)
public static TypeBindings create(Class<?> erasedType, ResolvedType[] types)
public TypeBindings withUnboundVariable(String name)
public ResolvedType findBoundType(String name)
public boolean isEmpty()
public int size()
public String getBoundName(int index)
public ResolvedType getBoundType(int index)
public List<ResolvedType> getTypeParameters()
public boolean hasUnbound(String name)
protected ResolvedType[] typeParameterArray()
Copyright © 2021 FasterXML. All rights reserved.