public enum SportType extends Enum<SportType>
| Enum Constant and Description |
|---|
BASKETBALL |
FOOTBALL11 |
FOOTBALL7 |
VIDEOGAMES |
| Modifier and Type | Method and Description |
|---|---|
static SportType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SportType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SportType FOOTBALL11
public static final SportType FOOTBALL7
public static final SportType BASKETBALL
public static final SportType VIDEOGAMES
public static SportType[] values()
for (SportType c : SportType.values()) System.out.println(c);
public static SportType 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 © 2018. All rights reserved.