Class Text

java.lang.Object
pretty.layout.Text

public class Text extends Object
Text class to format text in the console
  • Constructor Details

    • Text

      public Text()
  • Method Details

    • warning

      public static String warning(String message)
      Returns the message in red
      Parameters:
      message - - the message
      Returns:
      the formatted message
    • success

      public static String success(String message)
      Returns the message in green
      Parameters:
      message - - the message
      Returns:
      the formatted message
    • header

      public static String header(String message)
      Returns the message in blue and bold
      Parameters:
      message - - the message
      Returns:
      the formatted message
    • locked

      public static String locked(String message)
      Returns the message in gray
      Parameters:
      message - - the message
      Returns:
      the formatted message
    • highlight

      public static <T extends Number> String highlight(T number)
      Returns the number in blue
      Type Parameters:
      T - T - the type of the number
      Parameters:
      number - - the number
      Returns:
      the formatted number as string
    • highlight

      public static String highlight(String message)
      Returns the message in blue
      Parameters:
      message - - the message
      Returns:
      the formatted message
    • highlight

      public static String highlight(char character)
      Returns the char in blue
      Parameters:
      character - - the char
      Returns:
      the formatted character as string