|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math.stat.Frequency.NaturalComparator<T>
private static class Frequency.NaturalComparator<T extends java.lang.Comparable<T>>
A Comparator that compares comparable objects using the natural order. Copied from Commons Collections ComparableComparator.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Serializable version identifier |
| Constructor Summary | |
|---|---|
private |
Frequency.NaturalComparator()
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Comparable<T> o1,
java.lang.Comparable<T> o2)
Compare the two Comparable arguments. |
| 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 |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
private Frequency.NaturalComparator()
| Method Detail |
|---|
public int compare(java.lang.Comparable<T> o1,
java.lang.Comparable<T> o2)
Comparable arguments.
This method is equivalent to:
((Comparable)o1).compareTo(o2)
compare in interface java.util.Comparator<java.lang.Comparable<T extends java.lang.Comparable<T>>>o1 - the first objecto2 - the second object
java.lang.NullPointerException - when o1 is null,
or when ((Comparable)o1).compareTo(o2) does
java.lang.ClassCastException - when o1 is not a Comparable,
or when ((Comparable)o1).compareTo(o2) does
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||