Class DontCareFieldPosition


  • public final class DontCareFieldPosition
    extends 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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setBeginIndex​(int i)  
      void setEndIndex​(int i)  
      • Methods inherited from class java.text.FieldPosition

        equals, getBeginIndex, getEndIndex, getField, getFieldAttribute, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DontCareFieldPosition

        private DontCareFieldPosition()
    • Method Detail

      • setBeginIndex

        public void setBeginIndex​(int i)
        Overrides:
        setBeginIndex in class java.text.FieldPosition
      • setEndIndex

        public void setEndIndex​(int i)
        Overrides:
        setEndIndex in class java.text.FieldPosition