public static class FieldList.ForLoadedFields extends FieldList.AbstractBase<FieldDescription.InDefinedShape>
FieldList.AbstractBase<S extends FieldDescription>, FieldList.Empty<S extends FieldDescription>, FieldList.Explicit<S extends FieldDescription>, FieldList.ForLoadedFields, FieldList.ForTokens, FieldList.TypeSubstituting
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends java.lang.reflect.Field> |
fields
The loaded fields this field list represents.
|
Constructor and Description |
---|
ForLoadedFields(java.lang.reflect.Field... field)
Creates a new immutable field list that represents an array of loaded field.
|
ForLoadedFields(java.util.List<? extends java.lang.reflect.Field> fields)
Creates a new immutable field list that represents an array of loaded field.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.InDefinedShape |
get(int index) |
int |
size() |
asDefined, asTokenList, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
private final java.util.List<? extends java.lang.reflect.Field> fields
public ForLoadedFields(java.lang.reflect.Field... field)
field
- An array of fields to be represented by this field list.public ForLoadedFields(java.util.List<? extends java.lang.reflect.Field> fields)
fields
- An array of fields to be represented by this field list.public FieldDescription.InDefinedShape get(int index)
get
in interface java.util.List<FieldDescription.InDefinedShape>
get
in class java.util.AbstractList<FieldDescription.InDefinedShape>
public int size()
size
in interface java.util.Collection<FieldDescription.InDefinedShape>
size
in interface java.util.List<FieldDescription.InDefinedShape>
size
in class java.util.AbstractCollection<FieldDescription.InDefinedShape>