Class BooleanFormat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class BooleanFormat
    extends java.text.Format
    BooleanFormat doesn't do anything useful, but it was needed for BooleanContext (that doesn't do much either).
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.text.Format

        java.text.Format.Field
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanFormat()  
      BooleanFormat​(java.lang.String trueValue, java.lang.String falseValue)  
      BooleanFormat​(java.lang.String trueValue, java.lang.String falseValue, java.lang.String nullValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuffer format​(java.lang.Object object, java.lang.StringBuffer buffer, java.text.FieldPosition position)  
      java.lang.Boolean parseObject​(java.lang.String source, java.text.ParsePosition position)  
      • Methods inherited from class java.text.Format

        clone, format, formatToCharacterIterator, parseObject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myFalseValue

        private final java.lang.String myFalseValue
      • myNullValue

        private final java.lang.String myNullValue
      • myTrueValue

        private final java.lang.String myTrueValue
    • Constructor Detail

      • BooleanFormat

        public BooleanFormat()
      • BooleanFormat

        public BooleanFormat​(java.lang.String trueValue,
                             java.lang.String falseValue)
      • BooleanFormat

        public BooleanFormat​(java.lang.String trueValue,
                             java.lang.String falseValue,
                             java.lang.String nullValue)
    • Method Detail

      • format

        public java.lang.StringBuffer format​(java.lang.Object object,
                                             java.lang.StringBuffer buffer,
                                             java.text.FieldPosition position)
        Specified by:
        format in class java.text.Format
      • parseObject

        public java.lang.Boolean parseObject​(java.lang.String source,
                                             java.text.ParsePosition position)
        Specified by:
        parseObject in class java.text.Format