Interface StringConcatenationClient.TargetStringConcatenation

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void append​(java.lang.Object object)
      Append the string representation of the given object to this sequence.
      void append​(java.lang.Object object, java.lang.String indentation)
      Add the string representation of the given object to this sequence.
      void appendImmediate​(java.lang.Object object, java.lang.String indentation)
      Add the string representation of the given object to this sequence immediately.
      void newLine()
      Add a newline to this sequence according to the configured lineDelimiter.
      void newLineIfNotEmpty()
      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 Detail

      • 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​(java.lang.Object object,
                             java.lang.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​(java.lang.Object object,
                    java.lang.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​(java.lang.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.