com.gbayer.basicblackjack
Enum Hand.Result

java.lang.Object
  extended by java.lang.Enum<Hand.Result>
      extended by com.gbayer.basicblackjack.Hand.Result
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Hand.Result>
Enclosing class:
Hand

public static enum Hand.Result
extends java.lang.Enum<Hand.Result>

The Enum Result.


Enum Constant Summary
DealerWins
           
PlayerWins
           
Push
           
 
Method Summary
static Hand.Result valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Hand.Result[] 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
 

Enum Constant Detail

PlayerWins

public static final Hand.Result PlayerWins

DealerWins

public static final Hand.Result DealerWins

Push

public static final Hand.Result Push
Method Detail

values

public static Hand.Result[] 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 (Hand.Result c : Hand.Result.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Hand.Result 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