|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.card.HoleCards
public class HoleCards
A representation of a pair of hole cards.
Card| Constructor Summary | |
|---|---|
HoleCards(Card firstCard,
Card secondCard)
Create a HoleCards instance with the specified hole cards. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Card[] |
getCards()
Returns both hole cards. |
Card |
getFirstCard()
Returns the first hole card. |
int |
getFirstRank()
Returns the rank of the first hole card. |
Card |
getSecondCard()
Returns the second hole card. |
int |
getSecondRank()
Returns the rank of the second hole card. |
int |
hashCode()
|
boolean |
isFolded()
Returns a boolean indicating whether the hole cards are folded. |
boolean |
isSuited()
Returns a boolean indicating whether the hole cards are suited (the same suit). |
void |
setFolded(boolean isFolded)
Sets whether the hole cards are folded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HoleCards(Card firstCard,
Card secondCard)
firstCard - the first hole cardsecondCard - the second hole card| Method Detail |
|---|
public Card getFirstCard()
public Card getSecondCard()
public Card[] getCards()
public int getFirstRank()
public int getSecondRank()
public boolean isSuited()
public boolean isFolded()
public void setFolded(boolean isFolded)
isFolded - the booleanpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||