Package io.github.classgraph
Class PackageInfoList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<PackageInfo>
,Collection<PackageInfo>
,List<PackageInfo>
,RandomAccess
,SequencedCollection<PackageInfo>
A list of
PackageInfo
objects.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Filter anPackageInfoList
using a predicate mapping anPackageInfo
object to a boolean, producing anotherPackageInfoList
for all items in the list for which the predicate is true. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final PackageInfoList
An unmodifiablePackageInfoList
.private static final long
serialVersionUIDFields inherited from class io.github.classgraph.PotentiallyUnmodifiableList
modifiable
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PackageInfoList
(int sizeHint) Constructor.PackageInfoList
(Collection<PackageInfo> packageInfoCollection) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionFind the subset of thePackageInfo
objects in this list for which the given filter predicate is true.Methods inherited from class io.github.classgraph.MappableInfoList
asMap, containsName, get
Methods inherited from class io.github.classgraph.InfoList
equals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCode
Methods inherited from class io.github.classgraph.PotentiallyUnmodifiableList
add, add, addAll, addAll, clear, iterator, listIterator, makeUnmodifiable, remove, remove, removeAll, retainAll, set
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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID- See Also:
-
EMPTY_LIST
An unmodifiablePackageInfoList
.
-
-
Constructor Details
-
PackageInfoList
PackageInfoList()Constructor. -
PackageInfoList
PackageInfoList(int sizeHint) Constructor.- Parameters:
sizeHint
- the size hint
-
PackageInfoList
PackageInfoList(Collection<PackageInfo> packageInfoCollection) Constructor.- Parameters:
packageInfoCollection
- the package info collection
-
-
Method Details
-
filter
Find the subset of thePackageInfo
objects in this list for which the given filter predicate is true.- Parameters:
filter
- ThePackageInfoList.PackageInfoFilter
to apply.- Returns:
- The subset of the
PackageInfo
objects in this list for which the given filter predicate is true.
-