public enum Colours extends Enum<Colours>
| Enum Constant and Description |
|---|
BLACK |
BLUE |
CYAN |
DEFAULT |
GREEN |
GREY |
MAGENTA |
RED |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
static Colours |
byName(String name) |
StringBuilder |
colorize(StringBuilder stringBuilder,
String stepLogName) |
String |
getValue() |
static Colours |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Colours[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Colours BLACK
public static final Colours RED
public static final Colours GREEN
public static final Colours YELLOW
public static final Colours BLUE
public static final Colours MAGENTA
public static final Colours CYAN
public static final Colours WHITE
public static final Colours GREY
public static final Colours DEFAULT
public final String RESET
public static Colours[] values()
for (Colours c : Colours.values()) System.out.println(c);
public static Colours valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public StringBuilder colorize(StringBuilder stringBuilder, String stepLogName)
Copyright © 2018. All rights reserved.