org.apache.jcs.auxiliary.disk.indexed
Class IndexedDiskCache.PositionComparator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexedDiskCache.PositionComparator
protected IndexedDiskCache.PositionComparator()
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.