public static enum GBadge.Color extends Enum<GBadge.Color>
Enum Constant and Description |
---|
BLUE
Blue color.
|
GREEN
Green color.
|
RED
Red, the default color.
|
Modifier and Type | Field and Description |
---|---|
String |
description
The description corresponding to the item, e.g.
|
Modifier and Type | Method and Description |
---|---|
static GBadge.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GBadge.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GBadge.Color RED
public static final GBadge.Color BLUE
public static final GBadge.Color GREEN
public final String description
public static GBadge.Color[] values()
for (GBadge.Color c : GBadge.Color.values()) System.out.println(c);
public static GBadge.Color 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 nulliizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.