Class RichTextBuilder<T extends RichTextBuilder>

  • All Implemented Interfaces:
    TextBuilder<T>
    Direct Known Subclasses:
    ColoredRichTextBuilder

    @OpenApiAll
    public class RichTextBuilder<T extends RichTextBuilder>
    extends AbstractTextBuilder<T>
    A builder used for rich text building. Colored fragments are not supported.
    • Constructor Detail

      • RichTextBuilder

        public RichTextBuilder()
    • Method Detail

      • compress

        public void compress​(int textLength)
        Description copied from interface: TextBuilder
        Compress current text to the given length. This function is not supported in every implementation, so it can be ignored.
        Parameters:
        textLength - text length
      • toPlainText

        public java.lang.String toPlainText()
        Returns:
        result string as plain text