public enum Team extends Enum<Team>
| Modifier and Type | Method and Description |
|---|---|
int |
id() |
static Team |
valueOf(int id) |
static Team |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Team |
valueOfIgnoresCase(String teamString) |
static Team[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Team RED
public static final Team BLUE
public static final Team GREEN
public static final Team GOLD
public static final Team OTHER
public static Team[] values()
for (Team c : Team.values()) System.out.println(c);
public static Team 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 int id()
public static Team valueOf(int id)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.