public static class TypeList.Generic.ForLoadedTypes.OfTypeVariables extends TypeList.Generic.AbstractBase
TypeList.Generic.AbstractBase, TypeList.Generic.Empty, TypeList.Generic.Explicit, TypeList.Generic.ForDetachedTypes, TypeList.Generic.ForLoadedTypes, TypeList.Generic.OfConstructorExceptionTypes, TypeList.Generic.OfLoadedInterfaceTypes, TypeList.Generic.OfMethodExceptionTypes
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.reflect.TypeVariable<?>> |
typeVariables
The type variables this list represents.
|
Modifier | Constructor and Description |
---|---|
protected |
OfTypeVariables(java.util.List<java.lang.reflect.TypeVariable<?>> typeVariables)
Creates a new type list for loaded type variables.
|
protected |
OfTypeVariables(java.lang.reflect.TypeVariable<?>... typeVariable)
Creates a new type list for loaded type variables.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
get(int index) |
static TypeList.Generic |
of(java.lang.reflect.GenericDeclaration genericDeclaration)
Creates a list of the type variables of the supplied generic declaration.
|
int |
size() |
accept, asErasures, asRawTypes, asTokenList, getStackSize, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
private final java.util.List<java.lang.reflect.TypeVariable<?>> typeVariables
protected OfTypeVariables(java.lang.reflect.TypeVariable<?>... typeVariable)
typeVariable
- The type variables this list represents.protected OfTypeVariables(java.util.List<java.lang.reflect.TypeVariable<?>> typeVariables)
typeVariables
- The type variables this list represents.public static TypeList.Generic of(java.lang.reflect.GenericDeclaration genericDeclaration)
genericDeclaration
- The generic declaration to represent.public TypeDescription.Generic get(int index)
get
in interface java.util.List<TypeDescription.Generic>
get
in class java.util.AbstractList<TypeDescription.Generic>
public int size()
size
in interface java.util.Collection<TypeDescription.Generic>
size
in interface java.util.List<TypeDescription.Generic>
size
in class java.util.AbstractCollection<TypeDescription.Generic>