Class InfoList<T extends HasName>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
io.github.classgraph.PotentiallyUnmodifiableList<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
FieldsModifier and TypeFieldDescription(package private) static final longserialVersionUID.Fields inherited from class PotentiallyUnmodifiableList
modifiableFields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionInfoList()Constructor.InfoList(int sizeHint) Constructor.InfoList(Collection<T> infoCollection) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet 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()Methods inherited from class PotentiallyUnmodifiableList
add, add, addAll, addAll, clear, iterator, listIterator, makeUnmodifiable, remove, remove, removeAll, retainAll, setMethods 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
-
Field Details
-
serialVersionUID
static final long serialVersionUIDserialVersionUID.- See Also:
-
-
Constructor Details
-
InfoList
InfoList()Constructor. -
InfoList
InfoList(int sizeHint) Constructor.- Parameters:
sizeHint- the size hint
-
InfoList
InfoList(Collection<T> infoCollection) Constructor.- Parameters:
infoCollection- the initial elements.
-
-
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.
-