com.asdf.plugins.pokergames
Enum PokerGame.Blind
java.lang.Object
java.lang.Enum<PokerGame.Blind>
com.asdf.plugins.pokergames.PokerGame.Blind
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PokerGame.Blind>
- Enclosing class:
- PokerGame
public static enum PokerGame.Blind
- extends java.lang.Enum<PokerGame.Blind>
Method Summary |
double |
toPay(double smallBlind,
double bigBlind)
|
static PokerGame.Blind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PokerGame.Blind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SMALL_BLIND
public static final PokerGame.Blind SMALL_BLIND
BIG_BLIND
public static final PokerGame.Blind BIG_BLIND
BOTH_BLINDS
public static final PokerGame.Blind BOTH_BLINDS
NO_BLINDS
public static final PokerGame.Blind NO_BLINDS
amount1
public final double amount1
amount2
public final double amount2
values
public static PokerGame.Blind[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PokerGame.Blind c : PokerGame.Blind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PokerGame.Blind valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
toPay
public double toPay(double smallBlind,
double bigBlind)