game.Score.EntryComparator Class Reference

To keep the standards in comparing. More...

Inheritance diagram for game.Score.EntryComparator:

Inheritance graph
[legend]
Collaboration diagram for game.Score.EntryComparator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int compare (Object o1, Object o2)


Detailed Description

To keep the standards in comparing.

This class is needed for reverse sorting.

Author:
Team Solid Sun

Member Function Documentation

int game.Score.EntryComparator.compare ( Object  o1,
Object  o2 
)

References game.Score.Entry.compareTo().

00145                                                          {
00146                         if ((o1 instanceof Entry) && (o2 instanceof Entry)) {
00147                                 Entry entry1 = (Entry) o1;
00148                                 Entry entry2 = (Entry) o2;
00149                                 return -entry1.compareTo(entry2);
00150                         }
00151                         System.out.println("Error in comparator" + this.getClass());
00152                         return 0;
00153                 }


The documentation for this class was generated from the following file:

Generated on Mon Jul 28 19:03:06 2008 for SolidJavaTetris by  doxygen 1.5.5