java.text
Class DontCareFieldPosition

java.lang.Object
  extended byjava.text.FieldPosition
      extended byjava.text.DontCareFieldPosition

class DontCareFieldPosition
extends FieldPosition

DontCareFieldPosition defines no-op FieldDelegate. Its singleton is used for the format methods that don't take a FieldPosition.


Nested Class Summary
 
Nested classes inherited from class java.text.FieldPosition
 
Field Summary
(package private) static FieldPosition INSTANCE
           
private  Format.FieldDelegate noDelegate
           
 
Fields inherited from class java.text.FieldPosition
beginIndex, endIndex, field
 
Constructor Summary
private DontCareFieldPosition()
           
 
Method Summary
(package private)  Format.FieldDelegate getFieldDelegate()
          Returns a Format.FieldDelegate instance that is associated with the FieldPosition.
 
Methods inherited from class java.text.FieldPosition
equals, getBeginIndex, getEndIndex, getField, getFieldAttribute, hashCode, setBeginIndex, setEndIndex, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

static final FieldPosition INSTANCE

noDelegate

private final Format.FieldDelegate noDelegate
Constructor Detail

DontCareFieldPosition

private DontCareFieldPosition()
Method Detail

getFieldDelegate

Format.FieldDelegate getFieldDelegate()
Description copied from class: FieldPosition
Returns a Format.FieldDelegate instance that is associated with the FieldPosition. When the delegate is notified of the same field the FieldPosition is associated with, the begin/end will be adjusted.

Overrides:
getFieldDelegate in class FieldPosition