org.infinispan.loaders.jdbm
Class NaturalComparator<T>

java.lang.Object
  extended by 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

Constructor Summary
NaturalComparator()
           
 
Method Summary
 int compare(T o1, T o2)
           
 
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

NaturalComparator

public NaturalComparator()
Method Detail

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.