|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglassfrog.players.HandRankComparator
public class HandRankComparator
The HandRankComparator is used to rank the players based on their current hand rank, set by the dealer evaluation of thier hands at showdown. The higher the hand rank, the better the hand. Folds are given a rank of -1
Constructor Summary | |
---|---|
HandRankComparator()
|
Method Summary | |
---|---|
int |
compare(Player o1,
Player o2)
Used to sort players by hand rank, The higher the rank, the better the hand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public HandRankComparator()
Method Detail |
---|
public int compare(Player o1, Player o2)
compare
in interface java.util.Comparator<Player>
o1
- Player 1o2
- Player 2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |