public static class Top.Natural<T extends java.lang.Comparable<? super T>>
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
Serializable
Comparator
that that uses the compared elements' natural
ordering.Constructor and Description |
---|
Natural() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T a,
T b) |