public static enum Player.Position extends Enum<Player.Position>
| Enum Constant and Description |
|---|
DEFENSE |
OFFENSE |
SPECIAL_TEAMS |
| Modifier and Type | Method and Description |
|---|---|
static Player.Position |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Player.Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Player.Position DEFENSE
public static final Player.Position OFFENSE
public static final Player.Position SPECIAL_TEAMS
public static Player.Position[] values()
for (Player.Position c : Player.Position.values()) System.out.println(c);
public static Player.Position 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 © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.