public enum Result extends Enum<Result>
Enum Constant and Description |
---|
NILTWO
0-2 loss.
|
ONETWO
1-2 loss.
|
TWONIL
2-0 win.
|
TWOONE
2-1 win.
|
Modifier and Type | Method and Description |
---|---|
String |
buildDisplay()
build the display string.
|
static Result |
fromName(String pValue)
get value from name.
|
int |
getFramesAgainst()
Obtain frames against.
|
int |
getFramesDifference()
Obtain frames difference.
|
int |
getFramesFor()
Obtain frames for.
|
int |
getPoints()
Obtain points.
|
boolean |
isWin()
Is this a win?
|
Result |
reverse()
reverse value.
|
String |
toString() |
static Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Result TWONIL
public static final Result TWOONE
public static final Result ONETWO
public static final Result NILTWO
public static Result[] values()
for (Result c : Result.values()) System.out.println(c);
public static Result 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 String buildDisplay()
public int getFramesFor()
public int getFramesAgainst()
public int getFramesDifference()
public boolean isWin()
public int getPoints()
public Result reverse()
Copyright © 2015. All rights reserved.