Package io.github.classgraph
Class FieldInfoList
- 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
FieldsModifier and TypeFieldDescription(package private) static final FieldInfoListAn unmodifiable emptyFieldInfoList.private static final longserialVersionUIDFields inherited from class io.github.classgraph.PotentiallyUnmodifiableList
modifiableFields inherited from class java.util.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 TypeMethodDescriptionstatic 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, LogNode log) GetClassInfoobjects for any classes referenced in the list.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 io.github.classgraph.PotentiallyUnmodifiableList
add, add, addAll, addAll, clear, iterator, listIterator, makeUnmodifiable, remove, remove, removeAll, retainAll, setMethods inherited from class java.util.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 java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID- See Also:
-
EMPTY_LIST
An unmodifiable emptyFieldInfoList.
-
-
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, 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.
-