Interface FieldSelector
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
AllIndexesSelector
,ExcludeFieldEnumSelector
,ExcludeFieldIndexSelector
,ExcludeFieldNameSelector
,FieldEnumSelector
,FieldIndexSelector
,FieldNameSelector
Interface used to identify classes capable of selecting fields and returning their positions in a given sequence.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this field selector.describe()
Returns a string that represents the current field selectionint[]
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.
-
Method Details
-
getFieldIndexes
Returns the indexes of any selected fields that are part of a sequence of headers.- Parameters:
headers
- the sequence of headers that might have some elements selected by this FieldSelector- Returns:
- the positions of all selected elements in the given headers sequence.
-
getFieldIndexes
Returns the indexes of any selected fields that are part of a sequence of headers.- Parameters:
headers
- the sequence of headers that might have some elements selected by this FieldSelector- Returns:
- the positions of all selected elements in the given headers sequence.
-
describe
String describe()Returns a string that represents the current field selection- Returns:
- a string that represents the current field selection
-
clone
Object clone()Clones this field selector. Changes to the selection on the clone won't be reflected on the original- Returns:
- a copy of the current field selector.
-