Top Description Fields Constructors Methods
com.ibm.icu.impl

public final Class DontCareFieldPosition

extends FieldPosition
Class Inheritance
Imports
java.text.FieldPosition

DontCareFieldPosition is a subclass of FieldPosition that indicates that the caller is not interested in the start and end position of any field.

DontCareFieldPosition is a singleton, and its instance is immutable.

A format method use fpos == DontCareFieldPosition.INSTANCE to tell whether or not it needs to calculate a field position.

Field Summary

Modifier and TypeField and Description
public static final DontCareFieldPosition

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
setBeginIndex(int
the begin index
i
)

Overrides java.text.FieldPosition.setBeginIndex.

Sets the begin index.
public void
setEndIndex(int
the end index
i
)

Overrides java.text.FieldPosition.setEndIndex.

Sets the end index.
Inherited from java.text.FieldPosition:
equalsgetBeginIndexgetEndIndexgetFieldgetFieldAttributehashCodetoString

Field Detail

INSTANCEback to summary
public static final DontCareFieldPosition INSTANCE

Constructor Detail

DontCareFieldPositionback to summary
private DontCareFieldPosition()

Method Detail

setBeginIndexback to summary
public void setBeginIndex(int i)

Overrides java.text.FieldPosition.setBeginIndex.

Doc from java.text.FieldPosition.setBeginIndex.

Sets the begin index. For use by subclasses of Format.

Parameters
i:int

the begin index

Annotations
@Override
setEndIndexback to summary
public void setEndIndex(int i)

Overrides java.text.FieldPosition.setEndIndex.

Doc from java.text.FieldPosition.setEndIndex.

Sets the end index. For use by subclasses of Format.

Parameters
i:int

the end index

Annotations
@Override