Enum Class Format
- All Implemented Interfaces:
LogLevelFormat,Serializable,Comparable<Format>,Constable
Simple Formatting Utility class to describe basic transformations you could do to a Console Log String.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateFormat(Collection<Format> formatModifiers) Used to create a custom Log Format with a selection of format modifiers, this can include Bold, underline and colour for example.Gets the formatting string for the associated Log levelstatic FormatReturns the enum constant of this class with the specified name.static Format[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESET
-
BOLD
-
UNDERLINE
-
ITALIC
-
OUTLINE
-
BLACK
-
RED
-
GREEN
-
YELLOW
-
BLUE
-
PURPLE
-
CYAN
-
WHITE
-
BRIGHT_BLACK
-
BRIGHT_RED
-
BRIGHT_GREEN
-
BRIGHT_YELLOW
-
BRIGHT_BLUE
-
BRIGHT_PURPLE
-
BRIGHT_CYAN
-
BRIGHT_WHITE
-
BLACK_BACKGROUND
-
RED_BACKGROUND
-
GREEN_BACKGROUND
-
YELLOW_BACKGROUND
-
BLUE_BACKGROUND
-
PURPLE_BACKGROUND
-
CYAN_BACKGROUND
-
WHITE_BACKGROUND
-
BRIGHT_BLACK_BACKGROUND
-
BRIGHT_RED_BACKGROUND
-
BRIGHT_GREEN_BACKGROUND
-
BRIGHT_YELLOW_BACKGROUND
-
BRIGHT_BLUE_BACKGROUND
-
BRIGHT_PURPLE_BACKGROUND
-
BRIGHT_CYAN_BACKGROUND
-
BRIGHT_WHITE_BACKGROUND
-
-
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
-
createFormat
Used to create a custom Log Format with a selection of format modifiers, this can include Bold, underline and colour for example.- Parameters:
formatModifiers- The modifiers you would like this instance of Format to contain.- Returns:
- The String representation for the asked for Format Modifiers.
-
getFormatString
Description copied from interface:LogLevelFormatGets the formatting string for the associated Log level- Specified by:
getFormatStringin interfaceLogLevelFormat- Returns:
- The Escape codes for the associated Log Level.
-