public static enum Shirt.Size extends Enum<Shirt.Size>
| Modifier and Type | Method and Description |
|---|---|
static Shirt.Size |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Shirt.Size[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Shirt.Size SMALL
public static final Shirt.Size MEDIUM
public static final Shirt.Size LARGE
public static final Shirt.Size XLARGE
public static Shirt.Size[] values()
for (Shirt.Size c : Shirt.Size.values()) System.out.println(c);
public static Shirt.Size 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.