Class Formatter_Custom

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

    public class Formatter_Custom
    extends java.text.Format
    See Also:
    Serialized Form
    • Nested Class Summary

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

        java.text.Format.Field
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Function<java.lang.Double,​java.lang.String> customFormattingFunction  
    • Constructor Summary

      Constructors 
      Constructor Description
      Formatter_Custom​(java.util.function.Function<java.lang.Double,​java.lang.String> customFormattingFunction)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuffer format​(java.lang.Object o, java.lang.StringBuffer stringBuffer, java.text.FieldPosition fieldPosition)  
      java.lang.Object parseObject​(java.lang.String s, java.text.ParsePosition parsePosition)  
      • 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

      • customFormattingFunction

        private final java.util.function.Function<java.lang.Double,​java.lang.String> customFormattingFunction
    • Constructor Detail

      • Formatter_Custom

        public Formatter_Custom​(java.util.function.Function<java.lang.Double,​java.lang.String> customFormattingFunction)
    • Method Detail

      • format

        public java.lang.StringBuffer format​(java.lang.Object o,
                                             java.lang.StringBuffer stringBuffer,
                                             java.text.FieldPosition fieldPosition)
        Specified by:
        format in class java.text.Format
      • parseObject

        public java.lang.Object parseObject​(java.lang.String s,
                                            java.text.ParsePosition parsePosition)
        Specified by:
        parseObject in class java.text.Format