public enum WinResult extends Enum<WinResult>
| Modifier and Type | Method and Description |
|---|---|
static <A> WinResult |
resultFor(A winner,
A me,
A drawValue) |
WinResult |
reversed() |
static WinResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WinResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
double |
winValue() |
int |
winValueInt() |
public static final WinResult WIN
public static final WinResult LOSS
public static final WinResult DRAW
public static WinResult[] values()
for (WinResult c : WinResult.values()) System.out.println(c);
public static WinResult 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 static <A> WinResult resultFor(A winner, A me, A drawValue)
public int winValueInt()
public double winValue()
public WinResult reversed()
Copyright © 2014. All rights reserved.