public enum HomeAway extends Enum<HomeAway>
Enum Constant and Description |
---|
Away
The associated entity is away
|
Home
The associated entity is home
|
Modifier and Type | Method and Description |
---|---|
static HomeAway |
valueFromBasicStringDescription(String team) |
static HomeAway |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HomeAway[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HomeAway Home
public static final HomeAway Away
public static HomeAway[] values()
for (HomeAway c : HomeAway.values()) System.out.println(c);
public static HomeAway 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 © 2016–2025. All rights reserved.