public class FieldInfoList extends MappableInfoList<FieldInfo>
FieldInfo
objects.Modifier and Type | Class and Description |
---|---|
static interface |
FieldInfoList.FieldInfoFilter
Filter an
FieldInfoList using a predicate mapping an FieldInfo object to a boolean, producing
another FieldInfoList for all items in the list for which the predicate is true. |
Constructor and Description |
---|
FieldInfoList()
Construct a new modifiable empty list of
FieldInfo objects. |
FieldInfoList(Collection<FieldInfo> fieldInfoCollection)
Construct a new modifiable empty
FieldInfoList , given an initial list of FieldInfo objects. |
FieldInfoList(int sizeHint)
Construct a new modifiable empty list of
FieldInfo objects, given a size hint. |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
static FieldInfoList |
emptyList()
Return an unmodifiable empty
FieldInfoList . |
FieldInfoList |
filter(FieldInfoList.FieldInfoFilter filter)
Find the subset of the
FieldInfo 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) |
asMap, containsName, get
equals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCode
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
containsAll, toString
containsAll
parallelStream, stream
public FieldInfoList()
FieldInfo
objects.public FieldInfoList(int sizeHint)
FieldInfo
objects, given a size hint.sizeHint
- the size hintpublic FieldInfoList(Collection<FieldInfo> fieldInfoCollection)
FieldInfoList
, given an initial list of FieldInfo
objects.fieldInfoCollection
- the collection of FieldInfo
objects.public static FieldInfoList emptyList()
FieldInfoList
.FieldInfoList
.public FieldInfoList filter(FieldInfoList.FieldInfoFilter filter)
FieldInfo
objects in this list for which the given filter predicate is true.filter
- The FieldInfoList.FieldInfoFilter
to apply.FieldInfo
objects in this list for which the given filter predicate is
true.public boolean add(T element)
public void add(int index, T element)
public boolean remove(Object o)
public T remove(int index)
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index, Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public T set(int index, T element)
public Iterator<T> iterator()
public ListIterator<T> listIterator()
listIterator
in interface List<T>
listIterator
in class ArrayList<T>
Copyright © 2021. All rights reserved.