Interface StringConcatenationClient.TargetStringConcatenation

All Superinterfaces:
CharSequence
Enclosing class:
StringConcatenationClient

public static interface StringConcatenationClient.TargetStringConcatenation extends CharSequence
A StringConcatenationClient.TargetStringConcatenation models the public interface of a StringConcatenation so implementations of the StringConcatenationClient can append their content properly.
Since:
2.5
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(Object object)
    Append the string representation of the given object to this sequence.
    void
    append(Object object, String indentation)
    Add the string representation of the given object to this sequence.
    void
    appendImmediate(Object object, String indentation)
    Add the string representation of the given object to this sequence immediately.
    void
    Add a newline to this sequence according to the configured lineDelimiter.
    void
    Add a newline to this sequence according to the configured lineDelimiter if the last line contains something besides whitespace.

    Methods inherited from interface java.lang.CharSequence

    charAt, chars, codePoints, length, subSequence, toString
  • Method Details

    • newLineIfNotEmpty

      void newLineIfNotEmpty()
      Add a newline to this sequence according to the configured lineDelimiter if the last line contains something besides whitespace.
    • newLine

      void newLine()
      Add a newline to this sequence according to the configured lineDelimiter.
    • appendImmediate

      void appendImmediate(Object object, String indentation)
      Add the string representation of the given object to this sequence immediately. That is, all the trailing whitespace of this sequence will be ignored and the string is appended directly after the last segment that contains something besides whitespace. The given indentation will be prepended to each line except the first one if the object has a multi-line string representation.
      Parameters:
      object - the to-be-appended object.
      indentation - the indentation string that should be prepended. May not be null.
    • append

      void append(Object object, String indentation)
      Add the string representation of the given object to this sequence. The given indentation will be prepended to each line except the first one if the object has a multi-line string representation.
      Parameters:
      object - the appended object.
      indentation - the indentation string that should be prepended. May not be null.
    • append

      void append(Object object)
      Append the string representation of the given object to this sequence. Does nothing if the object is null.
      Parameters:
      object - the to-be-appended object.