Class SimpleFormatters.FixedString

java.lang.Object
monq.jfa.textparts.SimpleFormatters.FixedString
All Implemented Interfaces:
Formatter
Enclosing class:
SimpleFormatters

public static class SimpleFormatters.FixedString extends Object implements Formatter
implements a Formatter which totally ignores the given TextStore and instead appends a predefined string to the destination buffer.
  • Constructor Details

    • FixedString

      public FixedString(StringBuilder other)
      creates a Formatter to append the content of the other when its format method is called.
  • Method Details

    • append

      public void append(StringBuilder sb)
      appends the content of sb to the predifined string to be used by format.
    • append

      public void append(SimpleFormatters.FixedString other)
    • format

      public void format(StringBuilder sb, TextStore sp, Map<Object,Object> m)
      Description copied from interface: Formatter

      arranges (some of) the pieces of text found in st or m in an implementation dependend manner and appends them to out. Depending on the implementation, both, st and m or even both may be allowed to be null.

      Postcondition: This method may not change the content of dest other than by appending to it.

      Specified by:
      format in interface Formatter