public static enum SuperHero.ShirtSize extends Enum<SuperHero.ShirtSize>
Modifier and Type | Method and Description |
---|---|
static SuperHero.ShirtSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SuperHero.ShirtSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuperHero.ShirtSize S
public static final SuperHero.ShirtSize M
public static final SuperHero.ShirtSize L
public static final SuperHero.ShirtSize XL
public static final SuperHero.ShirtSize XXL
public static final SuperHero.ShirtSize HULK
public static SuperHero.ShirtSize[] values()
for (SuperHero.ShirtSize c : SuperHero.ShirtSize.values()) System.out.println(c);
public static SuperHero.ShirtSize 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 © 2021 Eclipse Foundation. All rights reserved.