com.openholdem.structs
Class Hand

java.lang.Object
  extended by com.openholdem.structs.Hand

public class Hand
extends java.lang.Object

Version:
$Revision: 1.5 $

A Hand is a set of Cards.

Author:
mattmann

Field Summary
static java.lang.String FLUSH
           
static java.lang.String FOUR_KIND
           
static java.lang.String FULL_HOUSE
           
static java.lang.String PAIR
           
static java.lang.String ROYAL_FLUSH
           
static java.lang.String STRAIGHT
           
static java.lang.String STRAIGHT_FLUSH
           
static java.lang.String THREE_KIND
           
static java.lang.String TWO_PAIR
           
 
Constructor Summary
Hand()
           
Hand(int size)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List getFCards()
           
 boolean isFourOfAKind()
           
 boolean isStraight()
           
 boolean sameSuit()
           
 void setFCards(java.util.List cards)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROYAL_FLUSH

public static final java.lang.String ROYAL_FLUSH
See Also:
Constant Field Values

FOUR_KIND

public static final java.lang.String FOUR_KIND
See Also:
Constant Field Values

FULL_HOUSE

public static final java.lang.String FULL_HOUSE
See Also:
Constant Field Values

STRAIGHT_FLUSH

public static final java.lang.String STRAIGHT_FLUSH
See Also:
Constant Field Values

THREE_KIND

public static final java.lang.String THREE_KIND
See Also:
Constant Field Values

FLUSH

public static final java.lang.String FLUSH
See Also:
Constant Field Values

STRAIGHT

public static final java.lang.String STRAIGHT
See Also:
Constant Field Values

TWO_PAIR

public static final java.lang.String TWO_PAIR
See Also:
Constant Field Values

PAIR

public static final java.lang.String PAIR
See Also:
Constant Field Values
Constructor Detail

Hand

public Hand()

Hand

public Hand(int size)
Method Detail

getFCards

public java.util.List getFCards()
Returns:
Returns the fCards.

setFCards

public void setFCards(java.util.List cards)
Parameters:
cards - The fCards to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

sameSuit

public boolean sameSuit()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

isStraight

public boolean isStraight()

isFourOfAKind

public boolean isFourOfAKind()


Copyright © 2005-2007 Pagemewhen.com. All Rights Reserved.