Modifier and Type | Field and Description |
---|---|
protected Collection<Integer> |
collection |
static FieldSet |
EMPTY_SET |
Modifier | Constructor and Description |
---|---|
|
FieldSet()
Creates a new empty set of fields.
|
protected |
FieldSet(Collection<Integer> fields) |
|
FieldSet(int... fieldIDs)
Creates a set with the given fields.
|
|
FieldSet(int[] fieldIDs,
boolean marker)
Creates a set with the given fields.
|
|
FieldSet(Integer fieldID)
Creates a set with one field.
|
Modifier and Type | Method and Description |
---|---|
FieldSet |
addField(Integer fieldID) |
FieldSet |
addFields(FieldSet set) |
FieldSet |
addFields(int... fieldIDs) |
FieldSet |
clone()
Since instances of FieldSet are strictly immutable, this method does not actually clone, but
it only returns the original instance.
|
boolean |
contains(Integer columnIndex) |
boolean |
equals(Object obj) |
protected String |
getDescriptionPrefix() |
protected String |
getDescriptionSuffix() |
int |
hashCode() |
boolean |
isValidSubset(FieldSet set)
Checks if the given set of fields is a valid subset of this set of fields.
|
Iterator<Integer> |
iterator() |
int |
size() |
int[] |
toArray()
Transforms the field set into an array of field IDs.
|
FieldList |
toFieldList()
Turns the FieldSet into an ordered FieldList.
|
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final FieldSet EMPTY_SET
protected final Collection<Integer> collection
public FieldSet()
public FieldSet(Integer fieldID)
fieldID
- The id of the field.public FieldSet(int... fieldIDs)
fieldIDs
- The IDs of the fields.public FieldSet(int[] fieldIDs, boolean marker)
fieldIDs
- The IDs of the fields.protected FieldSet(Collection<Integer> fields)
public FieldSet addFields(int... fieldIDs)
public boolean contains(Integer columnIndex)
public int size()
public FieldList toFieldList()
public int[] toArray()
public boolean isValidSubset(FieldSet set)
Subclasses that describe field sets where the field order matters must override this method to implement a field ordering sensitive check.
set
- The set that is a candidate subset.public FieldSet clone()
protected String getDescriptionPrefix()
protected String getDescriptionSuffix()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.