Package io.github.classgraph
Class PackageInfoList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- io.github.classgraph.PotentiallyUnmodifiableList<T>
-
- io.github.classgraph.InfoList<T>
-
- io.github.classgraph.MappableInfoList<PackageInfo>
-
- io.github.classgraph.PackageInfoList
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<PackageInfo>
,java.util.Collection<PackageInfo>
,java.util.List<PackageInfo>
,java.util.RandomAccess
public class PackageInfoList extends MappableInfoList<PackageInfo>
A list ofPackageInfo
objects.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PackageInfoList.PackageInfoFilter
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
Fields Modifier and Type Field Description (package private) static PackageInfoList
EMPTY_LIST
An unmodifiablePackageInfoList
.private static long
serialVersionUID
serialVersionUID-
Fields inherited from class io.github.classgraph.PotentiallyUnmodifiableList
modifiable
-
-
Constructor Summary
Constructors Constructor Description PackageInfoList()
Constructor.PackageInfoList(int sizeHint)
Constructor.PackageInfoList(java.util.Collection<PackageInfo> packageInfoCollection)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackageInfoList
filter(PackageInfoList.PackageInfoFilter filter)
Find 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
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
serialVersionUID- See Also:
- Constant Field Values
-
EMPTY_LIST
static final PackageInfoList EMPTY_LIST
An unmodifiablePackageInfoList
.
-
-
Constructor Detail
-
PackageInfoList
PackageInfoList()
Constructor.
-
PackageInfoList
PackageInfoList(int sizeHint)
Constructor.- Parameters:
sizeHint
- the size hint
-
PackageInfoList
PackageInfoList(java.util.Collection<PackageInfo> packageInfoCollection)
Constructor.- Parameters:
packageInfoCollection
- the package info collection
-
-
Method Detail
-
filter
public PackageInfoList filter(PackageInfoList.PackageInfoFilter 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.
-
-