Package io.github.classgraph
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
A list of named objects.
- See Also:
-
Field Summary
Fields inherited from class java.util.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 java.util.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 java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getNames
Get the names of all items in this list, by callinggetName()on each item in the list.- Returns:
- The names of all items in this list, by calling
getName()on each item in the list.
-
getAsStrings
Get the String representations of all items in this list, by callingtoString()on each item in the list.- Returns:
- The String representations of all items in this list, by calling
toString()on each item in the list.
-
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
public void clear() -
set
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Overrides:
listIteratorin classArrayList<T>
-