public static class FieldList.ForLoadedField extends AbstractList<FieldDescription> implements FieldList
FieldList.Empty, FieldList.Explicit, FieldList.ForLoadedField
modCount
Constructor and Description |
---|
ForLoadedField(Field[] field)
Creates a new immutable field list that represents an array of loaded field.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription |
get(int index) |
FieldDescription |
named(String fieldName)
Identifies a single field description in this list that is named
fieldName and returns this field
description. |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public ForLoadedField(Field[] field)
field
- An array of fields to be represented by this field list.public FieldDescription get(int index)
get
in interface List<FieldDescription>
get
in class AbstractList<FieldDescription>
public int size()
size
in interface Collection<FieldDescription>
size
in interface List<FieldDescription>
size
in class AbstractCollection<FieldDescription>
public FieldDescription named(String fieldName)
FieldList
fieldName
and returns this field
description. If no such field is in the list, an exception is thrown.Copyright © 2014. All rights reserved.