public class Hand extends com.threerings.util.StreamableArrayList<Card>
| Constructor and Description |
|---|
Hand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Card[] cards)
Adds all of the specified cards to this hand.
|
boolean |
containsAll(Card[] cards)
Checks whether this hand contains all of the specified cards.
|
Card[] |
getCards()
Converts this list of cards into an array.
|
int |
getSuitMemberCount(int suit)
Counts the members of a particular suit within this hand.
|
void |
removeAll(Card[] cards)
Removes all of the specified cards from this hand.
|
newList, readObject, writeObjectadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodeparallelStream, streampublic void addAll(Card[] cards)
public void removeAll(Card[] cards)
public boolean containsAll(Card[] cards)
public int getSuitMemberCount(int suit)
suit - the suit of interestpublic Card[] getCards()
ArrayList.get(int) if you simply need to get
a card from the hand.Copyright © 2015. All rights reserved.