Package com.arcadedb.utility
Enum AnsiCode
- java.lang.Object
-
- java.lang.Enum<AnsiCode>
-
- com.arcadedb.utility.AnsiCode
-
- All Implemented Interfaces:
Serializable
,Comparable<AnsiCode>
public enum AnsiCode extends Enum<AnsiCode>
Console ANSI utility class that supports most of the ANSI amenities.- Author:
- Luca Garulli
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKGROUND_BLACK
BACKGROUND_BLUE
BACKGROUND_CYAN
BACKGROUND_GREEN
BACKGROUND_MAGENTA
BACKGROUND_RED
BACKGROUND_WHITE
BACKGROUND_YELLOW
BLACK
BLINK
BLUE
CYAN
GREEN
HIGH_INTENSITY
INVISIBLE_TEXT
ITALIC
LOW_INTENSITY
MAGENTA
NULL
RAPID_BLINK
RED
RESET
REVERSE_VIDEO
UNDERLINE
WHITE
YELLOW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
format(String message)
static String
format(String message, boolean supportsColors)
static boolean
isSupportsColors()
String
toString()
static AnsiCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnsiCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESET
public static final AnsiCode RESET
-
BLACK
public static final AnsiCode BLACK
-
RED
public static final AnsiCode RED
-
GREEN
public static final AnsiCode GREEN
-
YELLOW
public static final AnsiCode YELLOW
-
BLUE
public static final AnsiCode BLUE
-
MAGENTA
public static final AnsiCode MAGENTA
-
CYAN
public static final AnsiCode CYAN
-
WHITE
public static final AnsiCode WHITE
-
HIGH_INTENSITY
public static final AnsiCode HIGH_INTENSITY
-
LOW_INTENSITY
public static final AnsiCode LOW_INTENSITY
-
ITALIC
public static final AnsiCode ITALIC
-
UNDERLINE
public static final AnsiCode UNDERLINE
-
BLINK
public static final AnsiCode BLINK
-
RAPID_BLINK
public static final AnsiCode RAPID_BLINK
-
REVERSE_VIDEO
public static final AnsiCode REVERSE_VIDEO
-
INVISIBLE_TEXT
public static final AnsiCode INVISIBLE_TEXT
-
BACKGROUND_BLACK
public static final AnsiCode BACKGROUND_BLACK
-
BACKGROUND_RED
public static final AnsiCode BACKGROUND_RED
-
BACKGROUND_GREEN
public static final AnsiCode BACKGROUND_GREEN
-
BACKGROUND_YELLOW
public static final AnsiCode BACKGROUND_YELLOW
-
BACKGROUND_BLUE
public static final AnsiCode BACKGROUND_BLUE
-
BACKGROUND_MAGENTA
public static final AnsiCode BACKGROUND_MAGENTA
-
BACKGROUND_CYAN
public static final AnsiCode BACKGROUND_CYAN
-
BACKGROUND_WHITE
public static final AnsiCode BACKGROUND_WHITE
-
NULL
public static final AnsiCode NULL
-
-
Method Detail
-
values
public static AnsiCode[] 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 (AnsiCode c : AnsiCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnsiCode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isSupportsColors
public static boolean isSupportsColors()
-
-