public static class TypeList.ForLoadedType extends FilterableList.AbstractBase<TypeDescription,TypeList> implements TypeList
TypeList.Empty, TypeList.Explicit, TypeList.ForLoadedTypeFilterableList.AbstractBase<T,S extends FilterableList<T,S>>modCount| Constructor and Description |
|---|
ForLoadedType(Class<?>... type)
Creates a new type list for an array of loaded types.
|
ForLoadedType(List<? extends Class<?>> types)
Creates a new type list for an array of loaded types.
|
| 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, subListadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfilter, getOnly, subListadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic ForLoadedType(Class<?>... type)
type - The types to be represented by this list.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()
TypeListtoInternalNames in interface TypeListnull if the list is empty.public int getStackSize()
TypeListgetStackSize in interface TypeListprotected TypeList wrap(List<TypeDescription> values)
FilterableList.AbstractBasewrap 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.