com.openholdem.structs
Class Hand
java.lang.Object
com.openholdem.structs.Hand
public class Hand
- extends java.lang.Object
- Version:
- $Revision: 1.5 $
A Hand is a set of Card
s.
- Author:
- mattmann
Constructor Summary |
Hand()
|
Hand(int size)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Hand
public Hand()
Hand
public Hand(int size)
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.