Package io.github.classgraph
Class PackageInfoList
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<PackageInfo>
,Collection<PackageInfo>
,List<PackageInfo>
,RandomAccess
public class PackageInfoList extends MappableInfoList<PackageInfo>
A list of
PackageInfo
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. -
Method Summary
Modifier and Type Method Description void
add(int index, T element)
boolean
add(T element)
boolean
addAll(int index, Collection<? extends T> c)
boolean
addAll(Collection<? extends T> c)
void
clear()
PackageInfoList
filter(PackageInfoList.PackageInfoFilter filter)
Find the subset of thePackageInfo
objects in this list for which the given filter predicate is true.Iterator<T>
iterator()
ListIterator<T>
listIterator()
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
T
set(int index, T element)
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
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.
-
add
public boolean add(T element) -
add
public void add(int index, T element) -
remove
-
remove
public T remove(int index) -
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
set
public T set(int index, T element) -
iterator
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
- Overrides:
listIterator
in classArrayList<T>
-