public static class TypeList.Explicit extends FilterableList.AbstractBase<TypeDescription,TypeList> implements TypeList
TypeList.Empty, TypeList.Explicit, TypeList.ForLoadedType
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>
modCount
Constructor and Description |
---|
Explicit(List<? extends TypeDescription> typeDescriptions)
Creates an immutable wrapper.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
get(int index) |
int |
getStackSize()
Returns the sum of the size of all types contained in this list.
|
int |
size() |
String[] |
toInternalNames()
Returns a list of internal names of all types represented by this list.
|
protected TypeList |
wrap(List<TypeDescription> values)
Represents a list of values as an instance of this instance's list type.
|
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
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public Explicit(List<? extends TypeDescription> typeDescriptions)
typeDescriptions
- The list of types to be represented by this wrapper.public TypeDescription get(int index)
get
in interface List<TypeDescription>
get
in class AbstractList<TypeDescription>
public int size()
size
in interface Collection<TypeDescription>
size
in interface List<TypeDescription>
size
in class AbstractCollection<TypeDescription>
public String[] toInternalNames()
TypeList
toInternalNames
in interface TypeList
null
if the list is empty.public int getStackSize()
TypeList
getStackSize
in interface TypeList
protected TypeList wrap(List<TypeDescription> values)
FilterableList.AbstractBase
wrap
in class FilterableList.AbstractBase<TypeDescription,TypeList>
values
- The values to wrap in an instance of this list's type.values
.Copyright © 2014–2015. All rights reserved.