edu.cuny.cat.market.matching
Class AscendingShoutComparator

java.lang.Object
  extended by edu.cuny.cat.market.matching.AscendingShoutComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<Shout>

public class AscendingShoutComparator
extends java.lang.Object
implements java.util.Comparator<Shout>, java.io.Serializable

This class can be used to as a Comparator to rank shouts in ascending order.

Version:
$Revision: 1.9 $
Author:
Steve Phelps
See Also:
Serialized Form

Constructor Summary
AscendingShoutComparator()
           
 
Method Summary
 int compare(Shout shout1, Shout shout2)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

AscendingShoutComparator

public AscendingShoutComparator()
Method Detail

compare

public int compare(Shout shout1,
                   Shout shout2)
Specified by:
compare in interface java.util.Comparator<Shout>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object