Package io.github.classgraph
Class ModuleInfoList
- 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<ModuleInfo>
-
- io.github.classgraph.ModuleInfoList
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<ModuleInfo>,java.util.Collection<ModuleInfo>,java.util.List<ModuleInfo>,java.util.RandomAccess
public class ModuleInfoList extends MappableInfoList<ModuleInfo>
A list ofModuleInfoobjects.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceModuleInfoList.ModuleInfoFilterFilter anModuleInfoListusing a predicate mapping anModuleInfoobject to a boolean, producing anotherModuleInfoListfor all items in the list for which the predicate is true.
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDserialVersionUID-
Fields inherited from class io.github.classgraph.PotentiallyUnmodifiableList
modifiable
-
-
Constructor Summary
Constructors Constructor Description ModuleInfoList()Constructor.ModuleInfoList(int sizeHint)Constructor.ModuleInfoList(java.util.Collection<ModuleInfo> moduleInfoCollection)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleInfoListfilter(ModuleInfoList.ModuleInfoFilter filter)Find the subset of theModuleInfoobjects 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
-
-
Constructor Detail
-
ModuleInfoList
ModuleInfoList()
Constructor.
-
ModuleInfoList
ModuleInfoList(int sizeHint)
Constructor.- Parameters:
sizeHint- the size hint
-
ModuleInfoList
ModuleInfoList(java.util.Collection<ModuleInfo> moduleInfoCollection)
Constructor.- Parameters:
moduleInfoCollection- the module info collection
-
-
Method Detail
-
filter
public ModuleInfoList filter(ModuleInfoList.ModuleInfoFilter filter)
Find the subset of theModuleInfoobjects in this list for which the given filter predicate is true.- Parameters:
filter- TheModuleInfoList.ModuleInfoFilterto apply.- Returns:
- The subset of the
ModuleInfoobjects in this list for which the given filter predicate is true.
-
-