Package best.skn.utils.color
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.3.2
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 method to throw Unsupported Instantiation Error- Throws:
UnsupportedOperationException- Since:
- v1.3.0
-