public static enum Shirt.Color extends Enum<Shirt.Color>
| Modifier and Type | Method and Description |
|---|---|
static Shirt.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Shirt.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Shirt.Color WHITE
public static final Shirt.Color GREY
public static final Shirt.Color BLACK
public static final Shirt.Color BLUE
public static final Shirt.Color TAN
public static Shirt.Color[] values()
for (Shirt.Color c : Shirt.Color.values()) System.out.println(c);
public static Shirt.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 nullCopyright © 2001-2019 Red Hat, Inc. All Rights Reserved.