|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbecker.xtras.jotto.MatchCount
public class MatchCount
MatchCount objects report how many exact and partial matches are
contained in a pair of words. It is used by IGuessEvaluator
so that a single method can return "multiple" values.
Constructor Summary | |
---|---|
MatchCount(int numExact,
int numPartial)
Construct a new MatchCount object to report the number of exact and partial matches in two words. |
Method Summary | |
---|---|
int |
getExact()
Get the number of exact matches between the two words. |
int |
getPartial()
Get the number of partial matches between the two words. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchCount(int numExact, int numPartial)
numExact
- The number of exact matches.
(0 <= numExact <= JottoModel.NUM_LETTERS) and
(numExact + numPartial <= JottoModel.NUM_LETTERS)numPartial
- The number of partial matches.
(0 <= numPartial <= JottoModel.NUM_LETTERS)Method Detail |
---|
public int getExact()
public int getPartial()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |