Enum Class ColorName
- All Implemented Interfaces:
Serializable,Comparable<ColorName>,Constable
ColorName Enum for internal use in Color Class
- Since:
- 2024-03-07
- Version:
- 1.5.0
- Author:
- SKN Shukhan
- Use Case:
- Java, Java Spring Boot
- Dedicated To:
- Logno, Atoshi and My Parents
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlack elementBold Black elementBlue elementBold Blue elementCyan elementBold Cyan elementGreen elementBold Green elementPurple elementBold Purple elementRed elementBold Red elementReset elementWhite elementBold White elementYellow elementBold Yellow element -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
RESET
-
BLACK
-
RED
-
GREEN
-
YELLOW
-
BLUE
-
PURPLE
-
CYAN
-
WHITE
-
BLACK_BOLD
-
RED_BOLD
-
GREEN_BOLD
-
YELLOW_BOLD
-
BLUE_BOLD
-
PURPLE_BOLD
-
CYAN_BOLD
-
WHITE_BOLD
-
-
Field Details
-
colorName
Private final property for the enum element String value- Since:
- v1.3.0
-
-
Constructor Details
-
ColorName
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Public method to get the enum element value- Returns:
- a String containing the value of enum element
- Since:
- v1.3.0
-