Class AllIndexesSelector
java.lang.Object
com.univocity.parsers.common.fields.AllIndexesSelector
- All Implemented Interfaces:
FieldSelector,Cloneable
A FieldSelector that selects all indexes of a record.
- Author:
- Univocity Software Pty Ltd - parsers@univocity.com
- See Also:
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
AllIndexesSelector
public AllIndexesSelector()
-
-
Method Details
-
getFieldIndexes
Description copied from interface:FieldSelectorReturns the indexes of any selected fields that are part of a sequence of headers.- Specified by:
getFieldIndexesin interfaceFieldSelector- 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
Description copied from interface:FieldSelectorReturns a string that represents the current field selection- Specified by:
describein interfaceFieldSelector- Returns:
- a string that represents the current field selection
-
clone
Description copied from interface:FieldSelectorClones this field selector. Changes to the selection on the clone won't be reflected on the original- Specified by:
clonein interfaceFieldSelector- Overrides:
clonein classObject- Returns:
- a copy of the current field selector.
-
getFieldIndexes
Description copied from interface:FieldSelectorReturns the indexes of any selected fields that are part of a sequence of headers.- Specified by:
getFieldIndexesin interfaceFieldSelector- 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.
-