|
||||||||||
| 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()
Creates am empty field set. |
|
FieldSet(List<FieldSet<T>> wrappedFieldSets)
Creates a field set that wraps a collection of other field sets. |
|
| 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 |
List<T> |
get()
Returns a copy of the fields in this set |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldSet()
public FieldSet(List<FieldSet<T>> wrappedFieldSets)
wrappedFieldSets - the field sets to be wrapped.| Method Detail |
|---|
public List<T> get()
public FieldSet<T> set(T... fields)
fields - information that uniquely identifies each field
public FieldSet<T> add(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> add(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()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||