Class MultilineMessageHelper


  • public class MultilineMessageHelper
    extends java.lang.Object
    Helper class to format multiline messages to the console
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static char BOX_CHAR  
      private static int DEFAULT_MAX_SIZE  
      private static java.util.regex.Pattern S_FILTER  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> format​(java.lang.String... lines)  
      private static void repeat​(java.lang.StringBuilder sb, char c, int nb)  
      static java.lang.String separatorLine()  
      • Methods inherited from class java.lang.Object

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

      • S_FILTER

        private static final java.util.regex.Pattern S_FILTER
    • Constructor Detail

      • MultilineMessageHelper

        public MultilineMessageHelper()
    • Method Detail

      • separatorLine

        public static java.lang.String separatorLine()
      • format

        public static java.util.List<java.lang.String> format​(java.lang.String... lines)
      • repeat

        private static void repeat​(java.lang.StringBuilder sb,
                                   char c,
                                   int nb)