public interface Sortable extends Comparable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object other,
boolean descending)
Compare this object to another depending on whether the sort order is descending or ascending.
|
compareTo
int compareTo(Object other, boolean descending)
other
- the other Object to compare to.descending
- true if descending, false if ascending.