de.upb.swtpra05.group03.shuttle.util
Class IDComparator

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.util.IDComparator
All Implemented Interfaces:
java.util.Comparator

public class IDComparator
extends java.lang.Object
implements java.util.Comparator

Compares ID Objects according to their id value. Internaly using the Object.hashCode() method which returns the id value of the ID object, so no casting is needed.

Version:
$Revision: 1.3 $

Constructor Summary
IDComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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

IDComparator

public IDComparator()
Method Detail

compare

public final int compare(java.lang.Object o1,
                         java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator