Package org.jvnet.hudson.test
Enum PrefixedOutputStream.Color
- java.lang.Object
-
- java.lang.Enum<PrefixedOutputStream.Color>
-
- org.jvnet.hudson.test.PrefixedOutputStream.Color
-
- All Implemented Interfaces:
Serializable
,Comparable<PrefixedOutputStream.Color>
,PrefixedOutputStream.AnsiColor
- Enclosing class:
- PrefixedOutputStream
public static enum PrefixedOutputStream.Color extends Enum<PrefixedOutputStream.Color> implements PrefixedOutputStream.AnsiColor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrefixedOutputStream.AnsiColor
bold()
String
getCode()
static PrefixedOutputStream.Color
valueOf(String name)
Returns the enum constant of this type with the specified name.static PrefixedOutputStream.Color[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RED
public static final PrefixedOutputStream.Color RED
-
GREEN
public static final PrefixedOutputStream.Color GREEN
-
YELLOW
public static final PrefixedOutputStream.Color YELLOW
-
BLUE
public static final PrefixedOutputStream.Color BLUE
-
MAGENTA
public static final PrefixedOutputStream.Color MAGENTA
-
CYAN
public static final PrefixedOutputStream.Color CYAN
-
-
Method Detail
-
values
public static PrefixedOutputStream.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 (PrefixedOutputStream.Color c : PrefixedOutputStream.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 PrefixedOutputStream.Color 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
-
getCode
public String getCode()
- Specified by:
getCode
in interfacePrefixedOutputStream.AnsiColor
-
bold
public PrefixedOutputStream.AnsiColor bold()
-
-