public class FieldEnumSelector extends FieldSet<Enum> implements FieldSelector
toString()
output of the enumeration value will be used to match name of the fields.FieldSelector
,
FieldSet
Constructor and Description |
---|
FieldEnumSelector() |
Modifier and Type | Method and Description |
---|---|
FieldEnumSelector |
clone()
Clones this field selector.
|
int |
getFieldIndex(Enum column)
Returns the position of a given column represented by an enumeration value.
|
int[] |
getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.
|
int[] |
getFieldIndexes(String[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.
|
add, add, describe, get, remove, remove, set, set, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
describe
public int getFieldIndex(Enum column)
column
- the column whose position will be returnedpublic int[] getFieldIndexes(NormalizedString[] headers)
FieldSelector
getFieldIndexes
in interface FieldSelector
headers
- the sequence of headers that might have some elements selected by this FieldSelectorpublic FieldEnumSelector clone()
FieldSelector
clone
in interface FieldSelector
clone
in class FieldSet<Enum>
public int[] getFieldIndexes(String[] headers)
FieldSelector
getFieldIndexes
in interface FieldSelector
headers
- the sequence of headers that might have some elements selected by this FieldSelectorCopyright © 2024 Univocity Software Pty Ltd. All rights reserved.