org.infinispan.loaders.jdbm
Class NaturalComparator<T>
java.lang.Object
org.infinispan.loaders.jdbm.NaturalComparator<T>
- All Implemented Interfaces:
- Serializable, Comparator<T>
public class NaturalComparator<T>
- extends Object
- implements Comparator<T>, Serializable
Compares keys using their natural ordering.
- Author:
- Elias Ross
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaturalComparator
public NaturalComparator()
compare
public int compare(T o1,
T o2)
- Specified by:
compare
in interface Comparator<T>
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.