public final class TypeBindings extends Object
Modifier and Type | Method and Description |
---|---|
static TypeBindings |
create(Class<?> erasedType,
List<ResolvedType> typeList)
Factory method for constructing bindings for given class using specified type
parameters.
|
static TypeBindings |
create(Class<?> erasedType,
ResolvedType[] types) |
static TypeBindings |
emptyBindings() |
boolean |
equals(Object o) |
ResolvedType |
findBoundType(String name)
Find type bound to specified name, if there is one; returns bound type if so, null if not.
|
String |
getBoundName(int index) |
ResolvedType |
getBoundType(int index) |
List<ResolvedType> |
getTypeParameters()
Accessor for getting bound types in declaration order
|
int |
hashCode() |
boolean |
isEmpty() |
int |
size()
Returns number of bindings contained
|
String |
toString() |
protected ResolvedType[] |
typeParameterArray() |
TypeBindings |
withAdditionalBinding(String name,
ResolvedType type)
Method for creating an instance that has same bindings as this object,
plus one additional binding
|
public static TypeBindings emptyBindings()
public static TypeBindings create(Class<?> erasedType, List<ResolvedType> typeList)
public static TypeBindings create(Class<?> erasedType, ResolvedType[] types)
public TypeBindings withAdditionalBinding(String name, ResolvedType type)
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()
protected ResolvedType[] typeParameterArray()
Copyright © 2015 fasterxml.com. All rights reserved.