Class Color
java.lang.Object
best.skn.utils.color.Color
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.4.0
- Author:
- SKN Shukhan
- Use Case:
- Java, Java Spring Boot
- Dedicated To:
- Logno, Atoshi and My Parents
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateColor()Private constructor to make the class non-instantiable -
Method Summary
Modifier and TypeMethodDescriptionstatic StringStatic method to output a black colored stringstatic StringStatic method to output a bold black colored stringstatic StringStatic method to output a blue colored stringstatic StringStatic method to output a bold blue colored stringstatic StringStatic method to output a cyan colored stringstatic StringStatic method to output a bold cyan colored stringstatic StringStatic method to output a green colored stringstatic StringStatic method to output a bold green colored stringstatic StringStatic method to output a purple colored stringstatic StringpurpleBold(String text) Static method to output a bold purple colored stringstatic StringStatic method to output a red colored stringstatic StringStatic method to output a bold red colored stringprotected static voidProtected static method to throw Unsupported Instantiation Errorstatic StringStatic method to output a white colored stringstatic StringStatic method to output a bold white colored stringstatic StringStatic method to output a yellow colored stringstatic StringyellowBold(String text) Static method to output a bold yellow colored string
-
Constructor Details
-
Color
private Color()Private constructor to make the class non-instantiable- Since:
- v1.3.0
-
-
Method Details
-
black
-
blackBold
-
red
-
redBold
-
green
-
greenBold
-
yellow
-
yellowBold
-
blue
-
blueBold
-
purple
-
purpleBold
-
cyan
-
cyanBold
-
white
-
whiteBold
-
ThrowInstantiationError
Protected static method to throw Unsupported Instantiation Error- Throws:
UnsupportedOperationException- Since:
- v1.3.0
-