net.jetrix.winlist
Class ScoreComparator

java.lang.Object
  extended by net.jetrix.winlist.ScoreComparator
All Implemented Interfaces:
Comparator<Score>

public class ScoreComparator
extends Object
implements Comparator<Score>

A Comparator for the winlist scores. Scores are sorted in descending order, hence score(200) < score(100).

Version:
$Revision: 794 $, $Date: 2009-02-17 20:08:39 +0100 (Tue, 17 Feb 2009) $
Author:
Emmanuel Bourg

Constructor Summary
ScoreComparator()
           
 
Method Summary
 int compare(Score score1, Score score2)
           
 
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

ScoreComparator

public ScoreComparator()
Method Detail

compare

public int compare(Score score1,
                   Score score2)
Specified by:
compare in interface Comparator<Score>


Copyright © 2001-2010. All Rights Reserved.