Enum AnsiColor
- java.lang.Object
-
- java.lang.Enum<AnsiColor>
-
- jetbrains.buildServer.web.buildlog.AnsiColor
-
- All Implemented Interfaces:
Serializable
,Comparable<AnsiColor>
public enum AnsiColor extends Enum<AnsiColor>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
static AnsiColor
of(int number)
String
style()
static AnsiColor
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnsiColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final AnsiColor BLACK
-
RED
public static final AnsiColor RED
-
GREEN
public static final AnsiColor GREEN
-
YELLOW
public static final AnsiColor YELLOW
-
BLUE
public static final AnsiColor BLUE
-
MAGENTA
public static final AnsiColor MAGENTA
-
CYAN
public static final AnsiColor CYAN
-
WHITE
public static final AnsiColor WHITE
-
-
Method Detail
-
values
public static AnsiColor[] 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 (AnsiColor c : AnsiColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnsiColor 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
-
of
@NotNull public static AnsiColor of(int number)
-
style
@NotNull public String style()
-
code
public int code()
-
-