Class Color

java.lang.Object
best.skn.utils.color.Color

public class Color extends Object
Color Class as main API

This is the main API Class to use in order to get colored string output

This Class has 16 methods for returning 8 different colored outputs

Since:
2024-03-07
Version:
1.5.0
Author:
SKN Shukhan
Use Case:
Java, Java Spring Boot
Dedicated To:
Logno, Atoshi and My Parents
  • Constructor Details

    • Color

      private Color()
      Private constructor to make the class non-instantiable
      Since:
      v1.3.0
  • Method Details

    • black

      public static String black(String text)
      Static method to output a black colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Black
      Since:
      v1.1.0
    • blackBold

      public static String blackBold(String text)
      Static method to output a bold black colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Black
      Since:
      v1.1.0
    • red

      public static String red(String text)
      Static method to output a red colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Red
      Since:
      v1.1.0
    • redBold

      public static String redBold(String text)
      Static method to output a bold red colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Red
      Since:
      v1.1.0
    • green

      public static String green(String text)
      Static method to output a green colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Green
      Since:
      v1.1.0
    • greenBold

      public static String greenBold(String text)
      Static method to output a bold green colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Green
      Since:
      v1.1.0
    • yellow

      public static String yellow(String text)
      Static method to output a yellow colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Yellow
      Since:
      v1.1.0
    • yellowBold

      public static String yellowBold(String text)
      Static method to output a bold yellow colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Yellow
      Since:
      v1.1.0
    • blue

      public static String blue(String text)
      Static method to output a blue colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Blue
      Since:
      v1.1.0
    • blueBold

      public static String blueBold(String text)
      Static method to output a bold blue colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Blue
      Since:
      v1.1.0
    • purple

      public static String purple(String text)
      Static method to output a purple colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Purple
      Since:
      v1.1.0
    • purpleBold

      public static String purpleBold(String text)
      Static method to output a bold purple colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Purple
      Since:
      v1.1.0
    • cyan

      public static String cyan(String text)
      Static method to output a cyan colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Cyan
      Since:
      v1.1.0
    • cyanBold

      public static String cyanBold(String text)
      Static method to output a bold cyan colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold Cyan
      Since:
      v1.1.0
    • white

      public static String white(String text)
      Static method to output a white colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is White
      Since:
      v1.1.0
    • whiteBold

      public static String whiteBold(String text)
      Static method to output a bold white colored string
      Parameters:
      text - a String as parameter
      Returns:
      a String with colored output which is Bold White
      Since:
      v1.1.0
    • ThrowInstantiationError

      protected static void ThrowInstantiationError() throws UnsupportedOperationException
      Protected static method to throw Unsupported Instantiation Error
      Throws:
      UnsupportedOperationException
      Since:
      v1.3.0