FieldSelector
public class FieldEnumSelector extends FieldSet<java.lang.Enum> implements FieldSelector
toString()
output of the enumeration value will be used to match name of the fields.FieldSelector
,
FieldSet
Constructor | Description |
---|---|
FieldEnumSelector() |
Modifier and Type | Method | Description |
---|---|---|
int |
getFieldIndex(java.lang.Enum column) |
Returns the position of a given column represented by an enumeration value.
|
int[] |
getFieldIndexes(java.lang.String[] headers) |
Returns the indexes of any selected fields that are part of a sequence of headers.
|
describe
public int getFieldIndex(java.lang.Enum column)
column
- the column whose position will be returnedpublic int[] getFieldIndexes(java.lang.String[] headers)
FieldSelector
getFieldIndexes
in interface FieldSelector
headers
- the sequence of headers that might have some elements selected by this FieldSelector