| Modifier and Type | Class and Description |
|---|---|
private static class |
TypeTuple.TypeIterator |
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<Type> |
list
The sequence of types in this type tuple.
|
| Constructor and Description |
|---|
TypeTuple()
Creates an empty type tuple.
|
TypeTuple(java.util.List<Type> list)
Creates a type tuple from the list of types, preserving the order.
|
| Modifier and Type | Method and Description |
|---|---|
TypeTuple |
applyCaptureConversion()
Applies a capture conversion to each component of this type type tuple.
|
int |
compareTo(TypeTuple tuple) |
boolean |
equals(@Nullable java.lang.Object obj) |
Type |
get(int i)
Return the ith component type of this tuple.
|
java.util.List<TypeVariable> |
getTypeParameters()
Returns the type parameters that occur in any component of this type tuple.
|
boolean |
hasCaptureVariable()
Indicates whether any of the types in this type tuple contains a capture variable.
|
int |
hashCode() |
boolean |
hasWildcard()
Indicates whether any of the types in this type tuple contains a wildcard.
|
boolean |
isEmpty()
Indicates whether the tuple is empty.
|
boolean |
isGeneric(boolean ignoreWildcards)
Indicates whether the tuple has any generic components.
|
java.util.Iterator<Type> |
iterator() |
int |
size()
Return the number of components of the tuple.
|
TypeTuple |
substitute(Substitution substitution)
Applies a substitution to a type tuple, replacing any occurrences of type variables.
|
java.lang.String |
toString() |
private final java.util.ArrayList<Type> list
public TypeTuple(java.util.List<Type> list)
list - the list of typespublic TypeTuple()
public boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic TypeTuple substitute(Substitution substitution)
substitution - the substitutionpublic TypeTuple applyCaptureConversion()
public Type get(int i)
i - the component indexpublic java.util.List<TypeVariable> getTypeParameters()
public boolean hasWildcard()
public boolean hasCaptureVariable()
public boolean isEmpty()
public int size()
public boolean isGeneric(boolean ignoreWildcards)
ignoreWildcards - if true, disregard wildcards when checking for genericspublic java.util.Iterator<Type> iterator()
iterator in interface java.lang.Iterable<Type>