Lightweight Bartering Grid

lbg.peer.strategy.ranking
Class TCoRConsumptionRanking.TCoRComparator

java.lang.Object
  extended by lbg.peer.strategy.ranking.TCoRConsumptionRanking.TCoRComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<TCoRConsumptionRanking.TCoRKey>
Enclosing class:
TCoRConsumptionRanking

protected static class TCoRConsumptionRanking.TCoRComparator
extends java.lang.Object
implements java.util.Comparator<TCoRConsumptionRanking.TCoRKey>, java.io.Serializable

Helper class of TCoRConsumptionRanking. Comparator of TCoRKeys (by decreasing TCoR).

See Also:
Serialized Form

Constructor Summary
TCoRConsumptionRanking.TCoRComparator()
           
 
Method Summary
 int compare(TCoRConsumptionRanking.TCoRKey k1, TCoRConsumptionRanking.TCoRKey k2)
           
 
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

TCoRConsumptionRanking.TCoRComparator

public TCoRConsumptionRanking.TCoRComparator()
Method Detail

compare

public int compare(TCoRConsumptionRanking.TCoRKey k1,
                   TCoRConsumptionRanking.TCoRKey k2)
Specified by:
compare in interface java.util.Comparator<TCoRConsumptionRanking.TCoRKey>

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.