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. -
Field Summary
Fields inherited from class AbstractList
modCount -
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.protected voidfindReferencedClassInfo(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, nonapi.io.github.classgraph.utils.LogNode log) GetClassInfoobjects for any classes referenced in the list.iterator()remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Methods inherited from class MappableInfoList
asMap, containsName, getMethods inherited from class InfoList
equals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCodeMethods 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
-
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.
-
findReferencedClassInfo
protected void findReferencedClassInfo(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, nonapi.io.github.classgraph.utils.LogNode log) GetClassInfoobjects for any classes referenced in the list.- Parameters:
classNameToClassInfo- the map from class name toClassInfo.refdClassInfo- the referenced class infolog- the log
-
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>
-