Top Description Constructors Methods
com.univocity.parsers.common.fields

public Class AllIndexesSelector

extends Object
implements FieldSelector
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.fields.FieldSelector, java.lang.Cloneable
Imports
com.univocity.parsers.common.*

A FieldSelector that selects all indexes of a record.
Author
Univocity Software Pty Ltd - [email protected]
See Also
FieldSelector

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Implements com.univocity.parsers.common.fields.FieldSelector.clone.

Clones this field selector.
public String
describe()

Implements com.univocity.parsers.common.fields.FieldSelector.describe.

Returns a string that represents the current field selection
public int[]
getFieldIndexes(NormalizedString[]
the sequence of headers that might have some elements selected by this FieldSelector
headers
)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.
public int[]
getFieldIndexes(String[]
the sequence of headers that might have some elements selected by this FieldSelector
headers
)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AllIndexesSelectorback to summary
public AllIndexesSelector()

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Implements com.univocity.parsers.common.fields.FieldSelector.clone.

Doc from com.univocity.parsers.common.fields.FieldSelector.clone.

Clones this field selector. Changes to the selection on the clone won't be reflected on the original

Returns:Object

a copy of the current field selector.

Annotations
@Override
describeback to summary
public String describe()

Implements com.univocity.parsers.common.fields.FieldSelector.describe.

Doc from com.univocity.parsers.common.fields.FieldSelector.describe.

Returns a string that represents the current field selection

Returns:String

a string that represents the current field selection

Annotations
@Override
getFieldIndexesback to summary
public int[] getFieldIndexes(NormalizedString[] headers)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Doc from com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.

Parameters
headers:NormalizedString[]

the sequence of headers that might have some elements selected by this FieldSelector

Returns:int[]

the positions of all selected elements in the given headers sequence.

Annotations
@Override
getFieldIndexesback to summary
public int[] getFieldIndexes(String[] headers)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Doc from com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.

Parameters
headers:String[]

the sequence of headers that might have some elements selected by this FieldSelector

Returns:int[]

the positions of all selected elements in the given headers sequence.

Annotations
@Override