T - the type of the reference information used to uniquely identify a field (e.g. references to field indexes would use Integer, while references to field names would use String).ExcludeFieldEnumSelector, ExcludeFieldIndexSelector, ExcludeFieldNameSelector, FieldEnumSelector, FieldIndexSelector, FieldNameSelectorpublic class FieldSet<T>
extends java.lang.Object
Used by CommonSettings to select fields for reading/writing
Also used by com.univocity.parsers.common.processor.ConversionProcessor to select fields that have to be converted.
FieldNameSelector,
FieldIndexSelector,
CommonSettings| Constructor | Description |
|---|---|
FieldSet() |
Creates am empty field set.
|
FieldSet(java.util.List<FieldSet<T>> wrappedFieldSets) |
Creates a field set that wraps a collection of other field sets.
|
| Modifier and Type | Method | Description |
|---|---|---|
FieldSet<T> |
add(java.util.Collection<T> fields) |
Validates and adds multiple field references
|
FieldSet<T> |
add(T... fields) |
Validates and adds multiple field references
|
java.lang.String |
describe() |
Returns a string that represents the current field selection
|
java.util.List<T> |
get() |
Returns a copy of the fields in this set
|
FieldSet<T> |
remove(java.util.Collection<T> fields) |
Removes multiple field references in the selection
|
FieldSet<T> |
remove(T... fields) |
Removes multiple field references in the selection
|
FieldSet<T> |
set(java.util.Collection<T> fields) |
Validates and sets multiple field references.
|
FieldSet<T> |
set(T... fields) |
Validates and sets multiple field references.
|
java.lang.String |
toString() |
public java.util.List<T> get()
public FieldSet<T> set(T... fields)
fields - information that uniquely identifies each fieldpublic FieldSet<T> add(T... fields)
fields - information that uniquely identifies each fieldpublic FieldSet<T> set(java.util.Collection<T> fields)
fields - information that uniquely identifies each fieldpublic FieldSet<T> add(java.util.Collection<T> fields)
fields - information that uniquely identifies each fieldpublic FieldSet<T> remove(T... fields)
fields - information that uniquely identifies each fieldpublic FieldSet<T> remove(java.util.Collection<T> fields)
fields - information that uniquely identifies each fieldpublic java.lang.String describe()
public java.lang.String toString()
toString in class java.lang.Object