Package com.core.logger
Enum SLogConst.TEXT_COLOR
- java.lang.Object
-
- java.lang.Enum<SLogConst.TEXT_COLOR>
-
- com.core.logger.SLogConst.TEXT_COLOR
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SLogConst.TEXT_COLOR>
- Enclosing class:
- SLogConst
public static enum SLogConst.TEXT_COLOR extends java.lang.Enum<SLogConst.TEXT_COLOR>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getColor()
static SLogConst.TEXT_COLOR
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SLogConst.TEXT_COLOR[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final SLogConst.TEXT_COLOR BLACK
-
RED
public static final SLogConst.TEXT_COLOR RED
-
GREEN
public static final SLogConst.TEXT_COLOR GREEN
-
YELLOW
public static final SLogConst.TEXT_COLOR YELLOW
-
BLUE
public static final SLogConst.TEXT_COLOR BLUE
-
PURPLE
public static final SLogConst.TEXT_COLOR PURPLE
-
CYAN
public static final SLogConst.TEXT_COLOR CYAN
-
WHITE
public static final SLogConst.TEXT_COLOR WHITE
-
RESET
public static final SLogConst.TEXT_COLOR RESET
-
-
Method Detail
-
values
public static SLogConst.TEXT_COLOR[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SLogConst.TEXT_COLOR c : SLogConst.TEXT_COLOR.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SLogConst.TEXT_COLOR valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getColor
public java.lang.String getColor()
-
-