Class TextStatusBuilderUtil


  • public class TextStatusBuilderUtil
    extends java.lang.Object
    Utility class to be used from TextStatusBuilder
    Since:
    5.0.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SEPARATOR  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void append​(java.lang.StringBuilder statusLine, java.lang.CharSequence str)
      Appends string to status line.
      static void prepend​(java.lang.StringBuilder statusLine, java.lang.CharSequence str)
      Prepends status line with specified string capitalized.
      static void replace​(java.lang.StringBuilder statusLine, java.lang.CharSequence str)
      Replaces status line with specified string capitalized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextStatusBuilderUtil

        public TextStatusBuilderUtil()
    • Method Detail

      • append

        public static void append​(@NotNull
                                  java.lang.StringBuilder statusLine,
                                  @NotNull
                                  java.lang.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
                                   java.lang.StringBuilder statusLine,
                                   @NotNull
                                   java.lang.CharSequence str)
        Replaces status line with specified string capitalized.
        Parameters:
        statusLine - status line
        str - string to append
      • prepend

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