org.opengts.extra.util
Class MemCache.MemEntryComparator<KEY,VAL>

java.lang.Object
  extended by org.opengts.extra.util.MemCache.MemEntryComparator<KEY,VAL>
All Implemented Interfaces:
java.util.Comparator<MemCache.MemEntry<KEY,VAL>>
Enclosing class:
MemCache<KEY,VAL>

public static class MemCache.MemEntryComparator<KEY,VAL>
extends java.lang.Object
implements java.util.Comparator<MemCache.MemEntry<KEY,VAL>>

Class MemEntryComparator (used for debugging only)


Constructor Summary
MemCache.MemEntryComparator()
           
MemCache.MemEntryComparator(boolean ascending)
           
 
Method Summary
 int compare(MemCache.MemEntry<KEY,VAL> o1, MemCache.MemEntry<KEY,VAL> o2)
           
 boolean equals(java.lang.Object other)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemCache.MemEntryComparator

public MemCache.MemEntryComparator()

MemCache.MemEntryComparator

public MemCache.MemEntryComparator(boolean ascending)
Method Detail

compare

public int compare(MemCache.MemEntry<KEY,VAL> o1,
                   MemCache.MemEntry<KEY,VAL> o2)
Specified by:
compare in interface java.util.Comparator<MemCache.MemEntry<KEY,VAL>>

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.util.Comparator<MemCache.MemEntry<KEY,VAL>>
Overrides:
equals in class java.lang.Object