edu.cuny.cat.market.matching
Class DescendingShoutComparator

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

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

A comparator that can be used for arranging shouts in descending order; that is, highest price first.

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

Constructor Summary
DescendingShoutComparator()
           
 
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

DescendingShoutComparator

public DescendingShoutComparator()
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