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