Class InfoList<T extends HasName>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
io.github.classgraph.InfoList<T>
- Type Parameters:
T- the element type
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, SequencedCollection<T>
- Direct Known Subclasses:
MappableInfoList, MethodInfoList
-
Field Summary
Fields inherited from class AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanGet the String representations of all items in this list, by callingtoString()on each item in the list.Get the String representations of all items in this list, using only simple names of any named classes, by callingScanResultObject#toStringWithSimpleNames()if the object is a subclass ofScanResultObject(e.g.getNames()Get the names of all items in this list, by callinggetName()on each item in the list.inthashCode()iterator()remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Methods inherited from class ArrayList
addFirst, addLast, clone, contains, ensureCapacity, forEach, get, getFirst, getLast, indexOf, isEmpty, lastIndexOf, listIterator, removeFirst, removeIf, removeLast, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Method Details
-
equals
-
hashCode
-
getNames
-
getAsStrings
-
getAsStringsWithSimpleNames
Get the String representations of all items in this list, using only simple names of any named classes, by callingScanResultObject#toStringWithSimpleNames()if the object is a subclass ofScanResultObject(e.g.ClassInfo,MethodInfoorFieldInfoobject), otherwise callingtoString(), for each item in the list.- Returns:
- The String representations of all items in this list, using only the simple names of any named classes.
-
add
-
add
-
remove
-
remove
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
-
set
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Overrides:
listIteratorin classArrayList<T>
-