public static class TypeList.ForLoadedTypes extends TypeList.AbstractBase
TypeList.AbstractBase, TypeList.Empty, TypeList.Explicit, TypeList.ForLoadedTypes, TypeList.Generic
modCount
NO_INTERFACES
Constructor and Description |
---|
ForLoadedTypes(Class<?>... type)
Creates a new type list for an array of loaded types.
|
ForLoadedTypes(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.
|
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
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 ForLoadedTypes(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()
TypeList
null
if the list is empty.public int getStackSize()
TypeList
Copyright © 2014–2016. All rights reserved.