Package io.github.classgraph
Class FieldInfoList
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<FieldInfo>
,Collection<FieldInfo>
,List<FieldInfo>
,RandomAccess
public class FieldInfoList extends MappableInfoList<FieldInfo>
A list of
FieldInfo
objects.- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FieldInfoList.FieldInfoFilter
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. -
Constructor Summary
Constructors Constructor Description FieldInfoList()
Construct 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 Type Method Description void
add(int index, T element)
boolean
add(T element)
boolean
addAll(int index, Collection<? extends T> c)
boolean
addAll(Collection<? extends T> c)
void
clear()
static FieldInfoList
emptyList()
Return an unmodifiable emptyFieldInfoList
.FieldInfoList
filter(FieldInfoList.FieldInfoFilter filter)
Find the subset of theFieldInfo
objects in this list for which the given filter predicate is true.Iterator<T>
iterator()
ListIterator<T>
listIterator()
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
T
set(int index, T element)
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
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
.
-
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.
-
add
public boolean add(T element) -
add
public void add(int index, T element) -
remove
-
remove
public T remove(int index) -
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
set
public T set(int index, T element) -
iterator
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
- Overrides:
listIterator
in classArrayList<T>
-