public class NaturalComparator<T extends Comparable<T>> extends Object implements Comparator<T>
Comparator implementation that can be used
when items to compare have "natural" sorting order that
can be used via Comparable interface.| Constructor and Description |
|---|
NaturalComparator() |
public int compare(T arg0, T arg1)
compare in interface Comparator<T extends Comparable<T>>Copyright © 2012-2014 FasterXML. All Rights Reserved.