|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.card.CommunityCards
public class CommunityCards
A represention of a set of community cards, comprised of Cards.
A set of community cards can not contain duplicate cards or null cards.
Card| Constructor Summary | |
|---|---|
CommunityCards()
Default constructor, which creates an empty set of community cards. |
|
CommunityCards(Card[] cards)
Creates a set of community cards, using the specified array of cards. |
|
| Method Summary | |
|---|---|
void |
add(Card card)
Adds the card to the existing set of community cards. |
Card[] |
getCards()
Returns the set of community cards as an array of cards. |
int |
size()
Returns the number of community cards. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommunityCards()
public CommunityCards(Card[] cards)
cards - the set of cards| Method Detail |
|---|
public void add(Card card)
card - the card to addpublic int size()
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 | |||||||||