public final class DontCareFieldPosition extends FieldPosition
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.
| Modifier and Type | Field and Description |
|---|---|
static DontCareFieldPosition |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
setBeginIndex(int i)
Sets the index of the beginning of the field.
|
void |
setEndIndex(int i)
Sets the index of the end of the field.
|
equals, getBeginIndex, getEndIndex, getField, getFieldAttribute, hashCode, toStringpublic static final DontCareFieldPosition INSTANCE
public void setBeginIndex(int i)
FieldPositionsetBeginIndex in class FieldPositionpublic void setEndIndex(int i)
FieldPositionsetEndIndex in class FieldPosition