net.sf.freecol.server.ai
Class CacheEntryComparator

java.lang.Object
  extended by net.sf.freecol.server.ai.CacheEntryComparator
All Implemented Interfaces:
java.util.Comparator<ProductionCache.Entry>

public class CacheEntryComparator
extends java.lang.Object
implements java.util.Comparator<ProductionCache.Entry>


Constructor Summary
CacheEntryComparator()
           
 
Method Summary
 int compare(ProductionCache.Entry entry1, ProductionCache.Entry entry2)
           
 int compareProduction(ProductionCache.Entry entry1, ProductionCache.Entry entry2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CacheEntryComparator

public CacheEntryComparator()
Method Detail

compareProduction

public int compareProduction(ProductionCache.Entry entry1,
                             ProductionCache.Entry entry2)

compare

public int compare(ProductionCache.Entry entry1,
                   ProductionCache.Entry entry2)
Specified by:
compare in interface java.util.Comparator<ProductionCache.Entry>