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 interfaceFilter anPackageInfoListusing a predicate mapping anPackageInfoobject to a boolean, producing anotherPackageInfoListfor all items in the list for which the predicate is true. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final PackageInfoListAn unmodifiablePackageInfoList.private static final longserialVersionUIDFields inherited from class PotentiallyUnmodifiableList
modifiableFields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PackageInfoList(int sizeHint) Constructor.PackageInfoList(Collection<PackageInfo> packageInfoCollection) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionFind the subset of thePackageInfoobjects in this list for which the given filter predicate is true.Methods inherited from class MappableInfoList
asMap, containsName, getMethods inherited from class InfoList
equals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCodeMethods 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
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 thePackageInfoobjects in this list for which the given filter predicate is true.- Parameters:
filter- ThePackageInfoList.PackageInfoFilterto apply.- Returns:
- The subset of the
PackageInfoobjects in this list for which the given filter predicate is true.
-