Modifier and Type | Field and Description |
---|---|
static Comparator<Card> |
CARD
|
static Comparator<List<Card>> |
HAND
|
Modifier | Constructor and Description |
---|---|
|
Evaluator(Collection<Card> collection)
Sole public constructor.
|
protected |
Evaluator(Collection<Card> collection,
Ranking... rankings)
Protected constructor to search for specific
Ranking (s). |
Modifier and Type | Method and Description |
---|---|
void |
accept(List<Card> list) |
List<Card> |
getHand()
|
Ranking |
getRanking()
Method to get this hand's
Ranking . |
List<Card> |
getScoring()
|
boolean |
test(List<Card> prefix) |
String |
toString() |
public static final Comparator<Card> CARD
public static final Comparator<List<Card>> HAND
public Evaluator(Collection<Card> collection)
collection
- The Collection
of Card
s to
evaluate.protected Evaluator(Collection<Card> collection, Ranking... rankings)
Ranking
(s).collection
- The Collection
of Card
s to
evaluate.rankings
- The Ranking
s to look for.public Ranking getRanking()
Ranking
.Ranking
.public List<Card> getScoring()
Copyright © 2015–2020 Allen D. Ball. All rights reserved.