Class FieldInfoList
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<FieldInfo>,Collection<FieldInfo>,List<FieldInfo>,RandomAccess,SequencedCollection<FieldInfo>
A list of
FieldInfo objects.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFilter anFieldInfoListusing a predicate mapping anFieldInfoobject to a boolean, producing anotherFieldInfoListfor all items in the list for which the predicate is true. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new modifiable empty list ofFieldInfoobjects.FieldInfoList(int sizeHint) Construct a new modifiable empty list ofFieldInfoobjects, given a size hint.FieldInfoList(Collection<FieldInfo> fieldInfoCollection) Construct a new modifiable emptyFieldInfoList, given an initial list ofFieldInfoobjects. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends FieldInfo> c) booleanaddAll(Collection<? extends FieldInfo> c) voidclear()static FieldInfoListReturn an unmodifiable emptyFieldInfoList.filter(FieldInfoList.FieldInfoFilter filter) Find the subset of theFieldInfoobjects in this list for which the given filter predicate is true.iterator()remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Methods inherited from class io.github.classgraph.MappableInfoList
asMap, containsName, getMethods inherited from class io.github.classgraph.InfoList
equals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCodeMethods inherited from class java.util.ArrayList
addFirst, addLast, clone, contains, ensureCapacity, forEach, get, getFirst, getLast, indexOf, isEmpty, lastIndexOf, listIterator, removeFirst, removeIf, removeLast, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
FieldInfoList
public FieldInfoList()Construct a new modifiable empty list ofFieldInfoobjects. -
FieldInfoList
public FieldInfoList(int sizeHint) Construct a new modifiable empty list ofFieldInfoobjects, given a size hint.- Parameters:
sizeHint- the size hint
-
FieldInfoList
Construct a new modifiable emptyFieldInfoList, given an initial list ofFieldInfoobjects.- Parameters:
fieldInfoCollection- the collection ofFieldInfoobjects.
-
-
Method Details
-
emptyList
Return an unmodifiable emptyFieldInfoList.- Returns:
- the unmodifiable empty
FieldInfoList.
-
filter
Find the subset of theFieldInfoobjects in this list for which the given filter predicate is true.- Parameters:
filter- TheFieldInfoList.FieldInfoFilterto apply.- Returns:
- The subset of the
FieldInfoobjects in this list for which the given filter predicate is true.
-
add
-
add
-
remove
-
remove
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
-
set
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Overrides:
listIteratorin classArrayList<T>
-