|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ninm.games.cardgames.common.CardUtils
General purpose card utilities
Constructor Summary | |
private |
CardUtils()
CardUtils should not be instantiated. |
Method Summary | |
static boolean |
contains(Face face,
java.util.Set cards)
returns true if the set of cards contains the given face |
static java.util.Set |
getCardsFrom(Face face,
java.util.Set cards)
finds all the cards from the given face |
static java.util.Set |
getCardsFrom(Suit suit,
java.util.Set cards)
returns all the cards of the given suit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private CardUtils()
Method Detail |
public static final java.util.Set getCardsFrom(Suit suit, java.util.Set cards)
suit
- the suit to search forcards
- the set of cards to search through
public static final java.util.Set getCardsFrom(Face face, java.util.Set cards)
face
- the face to search forcards
- the cards to search in
public static boolean contains(Face face, java.util.Set cards)
face
- the face to search forcards
- the cards to search in
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |