org.apache.jcs.auxiliary.disk.indexed
Class IndexedDiskCache.PositionComparator

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.PositionComparator
All Implemented Interfaces:
Serializable, Comparator<IndexedDiskElementDescriptor>
Enclosing class:
IndexedDiskCache<K extends Serializable,V extends Serializable>

protected static final class IndexedDiskCache.PositionComparator
extends Object
implements Comparator<IndexedDiskElementDescriptor>, Serializable

Compares IndexedDiskElementDescriptor based on their position.

See Also:
Serialized Form

Constructor Summary
protected IndexedDiskCache.PositionComparator()
           
 
Method Summary
 int compare(IndexedDiskElementDescriptor o1, IndexedDiskElementDescriptor o2)
          Compares two descriptors based on position.
 
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

IndexedDiskCache.PositionComparator

protected IndexedDiskCache.PositionComparator()
Method Detail

compare

public int compare(IndexedDiskElementDescriptor o1,
                   IndexedDiskElementDescriptor o2)
Compares two descriptors based on position.

Specified by:
compare in interface Comparator<IndexedDiskElementDescriptor>
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.