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 interface
Filter anFieldInfoList
using a predicate mapping anFieldInfo
object to a boolean, producing anotherFieldInfoList
for all items in the list for which the predicate is true. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final FieldInfoList
An unmodifiable emptyFieldInfoList
.private static final long
serialVersionUIDFields inherited from class io.github.classgraph.PotentiallyUnmodifiableList
modifiable
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new modifiable empty list ofFieldInfo
objects.FieldInfoList
(int sizeHint) Construct a new modifiable empty list ofFieldInfo
objects, given a size hint.FieldInfoList
(Collection<FieldInfo> fieldInfoCollection) Construct a new modifiable emptyFieldInfoList
, given an initial list ofFieldInfo
objects. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldInfoList
Return an unmodifiable emptyFieldInfoList
.filter
(FieldInfoList.FieldInfoFilter filter) Find the subset of theFieldInfo
objects in this list for which the given filter predicate is true.protected void
findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the list.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
addFirst, addLast, clone, contains, ensureCapacity, forEach, get, getFirst, getLast, indexOf, isEmpty, lastIndexOf, listIterator, removeFirst, removeIf, removeLast, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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 ofFieldInfo
objects. -
FieldInfoList
public FieldInfoList(int sizeHint) Construct a new modifiable empty list ofFieldInfo
objects, given a size hint.- Parameters:
sizeHint
- the size hint
-
FieldInfoList
Construct a new modifiable emptyFieldInfoList
, given an initial list ofFieldInfo
objects.- Parameters:
fieldInfoCollection
- the collection ofFieldInfo
objects.
-
-
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) GetClassInfo
objects 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 theFieldInfo
objects in this list for which the given filter predicate is true.- Parameters:
filter
- TheFieldInfoList.FieldInfoFilter
to apply.- Returns:
- The subset of the
FieldInfo
objects in this list for which the given filter predicate is true.
-