Package com.ibm.icu.impl
Class DontCareFieldPosition
- java.lang.Object
-
- java.text.FieldPosition
-
- com.ibm.icu.impl.DontCareFieldPosition
-
public final class DontCareFieldPosition extends 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
formatmethod usefpos == DontCareFieldPosition.INSTANCEto tell whether or not it needs to calculate a field position.
-
-
Field Summary
Fields Modifier and Type Field Description static DontCareFieldPositionINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetBeginIndex(int i)Sets the index of the beginning of the field.voidsetEndIndex(int i)Sets the index of the end of the field.-
Methods inherited from class java.text.FieldPosition
equals, getBeginIndex, getEndIndex, getField, getFieldAttribute, hashCode, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final DontCareFieldPosition INSTANCE
-
-
Method Detail
-
setBeginIndex
public void setBeginIndex(int i)
Description copied from class:FieldPositionSets the index of the beginning of the field.- Overrides:
setBeginIndexin classFieldPosition
-
setEndIndex
public void setEndIndex(int i)
Description copied from class:FieldPositionSets the index of the end of the field.- Overrides:
setEndIndexin classFieldPosition
-
-