Class ForgeI18n.CustomReadOnlyFormat

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

    public static class ForgeI18n.CustomReadOnlyFormat
    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.BiConsumer<java.lang.StringBuffer,​java.lang.Object> formatter  
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomReadOnlyFormat​(java.util.function.BiConsumer<java.lang.StringBuffer,​java.lang.Object> formatter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuffer format​(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)  
      java.lang.Object parseObject​(java.lang.String source, java.text.ParsePosition pos)  
      • 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

      • formatter

        private final java.util.function.BiConsumer<java.lang.StringBuffer,​java.lang.Object> formatter
    • Constructor Detail

      • CustomReadOnlyFormat

        CustomReadOnlyFormat​(java.util.function.BiConsumer<java.lang.StringBuffer,​java.lang.Object> formatter)
    • Method Detail

      • format

        public java.lang.StringBuffer format​(java.lang.Object obj,
                                             java.lang.StringBuffer toAppendTo,
                                             java.text.FieldPosition pos)
        Specified by:
        format in class java.text.Format
      • parseObject

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