cz.cvut.agents.rph.reversi
Class PlayerResult.PlayerResultComparator

java.lang.Object
  extended by cz.cvut.agents.rph.reversi.PlayerResult.PlayerResultComparator
All Implemented Interfaces:
java.util.Comparator<PlayerResult>
Enclosing class:
PlayerResult

private static class PlayerResult.PlayerResultComparator
extends java.lang.Object
implements java.util.Comparator<PlayerResult>

Compares PlayerResults according to games won, then according to stones gathered.

Author:
Ondrej Vanek

Constructor Summary
private PlayerResult.PlayerResultComparator()
           
 
Method Summary
 int compare(PlayerResult player1, PlayerResult player2)
           
 
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

PlayerResult.PlayerResultComparator

private PlayerResult.PlayerResultComparator()
Method Detail

compare

public int compare(PlayerResult player1,
                   PlayerResult player2)
Specified by:
compare in interface java.util.Comparator<PlayerResult>