public enum AnsiBackground extends Enum<AnsiBackground> implements AnsiElement
Ansi
background colors.Enum Constant and Description |
---|
BLACK |
BLUE |
BRIGHT_BLACK |
BRIGHT_BLUE |
BRIGHT_CYAN |
BRIGHT_GREEN |
BRIGHT_MAGENTA |
BRIGHT_RED |
BRIGHT_WHITE |
BRIGHT_YELLOW |
CYAN |
DEFAULT |
GREEN |
MAGENTA |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static AnsiBackground |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnsiBackground[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnsiBackground DEFAULT
public static final AnsiBackground BLACK
public static final AnsiBackground RED
public static final AnsiBackground GREEN
public static final AnsiBackground YELLOW
public static final AnsiBackground BLUE
public static final AnsiBackground MAGENTA
public static final AnsiBackground CYAN
public static final AnsiBackground WHITE
public static final AnsiBackground BRIGHT_BLACK
public static final AnsiBackground BRIGHT_RED
public static final AnsiBackground BRIGHT_GREEN
public static final AnsiBackground BRIGHT_YELLOW
public static final AnsiBackground BRIGHT_BLUE
public static final AnsiBackground BRIGHT_MAGENTA
public static final AnsiBackground BRIGHT_CYAN
public static final AnsiBackground BRIGHT_WHITE
public static AnsiBackground[] values()
for (AnsiBackground c : AnsiBackground.values()) System.out.println(c);
public static AnsiBackground 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 toString()
toString
in interface AnsiElement
toString
in class Enum<AnsiBackground>
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.