|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglassfrog.players.PotCommitedComparator
public class PotCommitedComparator
The PotCommitedComparator is used to get the least amout a player in a showdown commited to the pot. This allows us to calculate sidepots and pay winners in an iterative fashion.
Constructor Summary | |
---|---|
PotCommitedComparator()
|
Method Summary | |
---|---|
int |
compare(Player o1,
Player o2)
Used to sort players by thier total commited to pot, lowest to highest |
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 PotCommitedComparator()
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 |