|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.univocity.parsers.common.fields.FieldSet<T>
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).public class FieldSet<T>
A set of selected fields.
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 Summary | |
---|---|
FieldSet()
|
Method Summary | |
---|---|
FieldSet<T> |
add(Collection<T> fields)
Validates and adds multiple field references |
FieldSet<T> |
add(T... fields)
Validates and adds multiple field references |
String |
describe()
Returns a string that represents the current field selection |
FieldSet<T> |
remove(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(Collection<T> fields)
Validates and sets multiple field references. |
FieldSet<T> |
set(T... fields)
Validates and sets multiple field references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldSet()
Method Detail |
---|
public FieldSet<T> add(T... fields)
fields
- information that uniquely identifies each field
public FieldSet<T> set(T... fields)
fields
- information that uniquely identifies each field
public FieldSet<T> add(Collection<T> fields)
fields
- information that uniquely identifies each field
public FieldSet<T> set(Collection<T> fields)
fields
- information that uniquely identifies each field
public FieldSet<T> remove(T... fields)
fields
- information that uniquely identifies each field
public FieldSet<T> remove(Collection<T> fields)
fields
- information that uniquely identifies each field
public String describe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |