Class TextStatusBuilderUtil

    • Constructor Detail

      • TextStatusBuilderUtil

        public TextStatusBuilderUtil()
    • Method Detail

      • append

        public static void append​(@NotNull
                                  StringBuilder statusLine,
                                  @NotNull
                                  CharSequence str)
        Appends string to status line. If current status line is empty, first character of the specified string is capitalized. If current status line is not empty, the standard separator is appended (;), then the first character of the specified string translated to lower case, and the string is appended.
        Parameters:
        statusLine - status line
        str - string to append
      • replace

        public static void replace​(@NotNull
                                   StringBuilder statusLine,
                                   @NotNull
                                   CharSequence str)
        Replaces status line with specified string capitalized.
        Parameters:
        statusLine - status line
        str - string to append
      • prepend

        public static void prepend​(@NotNull
                                   StringBuilder statusLine,
                                   @NotNull
                                   CharSequence str)
        Prepends status line with specified string capitalized.
        Parameters:
        statusLine - status line
        str - string to append