|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.card.Hand
public class Hand
A representation of a poker hand.
| Field Summary | |
|---|---|
static int |
FLUSH
Flush |
static int |
FOUR_OF_A_KIND
Four-of-a-kind |
static int |
FULL_HOUSE
Full house |
static int |
HIGH_CARD
High card |
static int |
PAIR
Pair |
static int |
STRAIGHT
Straight |
static int |
STRAIGHT_FLUSH
Straight flush |
static int |
THREE_OF_A_KIND
Three-of-a-kind |
static int |
TWO_PAIRS
Two pairs |
| Constructor Summary | |
|---|---|
Hand(int handRank,
Card[] cards)
Creates a hand with the specified rank and set of cards. |
|
| Method Summary | |
|---|---|
Card[] |
getCards()
Returns the cards in the hand. |
int |
getHandRank()
Returns the hand rank. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HIGH_CARD
public static final int PAIR
public static final int TWO_PAIRS
public static final int THREE_OF_A_KIND
public static final int STRAIGHT
public static final int FLUSH
public static final int FULL_HOUSE
public static final int FOUR_OF_A_KIND
public static final int STRAIGHT_FLUSH
| Constructor Detail |
|---|
public Hand(int handRank,
Card[] cards)
handRank - the hand rankcards - the hand cards| Method Detail |
|---|
public int getHandRank()
public Card[] getCards()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||