com.easyjf.cache.store
Class LfuMemoryStore.ElementComparator

java.lang.Object
  extended bycom.easyjf.cache.store.LfuMemoryStore.ElementComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
LfuMemoryStore

public class LfuMemoryStore.ElementComparator
extends java.lang.Object
implements java.util.Comparator

A comparator class compares two elements.


Constructor Summary
LfuMemoryStore.ElementComparator()
           
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Compares two elements
 
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

LfuMemoryStore.ElementComparator

public LfuMemoryStore.ElementComparator()
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Compares two elements

Specified by:
compare in interface java.util.Comparator