public enum SportType extends Enum<SportType>
| Enum Constant and Description |
|---|
BASKET |
SOCCER11 |
SOCCER7 |
VIDEOGAMES |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
Returns the label of the type of sport
|
void |
setLabel(String label)
Sets the label of the type of sport
|
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 SOCCER11
public static final SportType SOCCER7
public static final SportType BASKET
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 nullpublic String getLabel()
public void setLabel(String label)
label - the new label of the typeCopyright © 2018. All rights reserved.