T - type of instance to be comparedpublic interface RichComparable<T> extends Comparable<T>
Comparable interface.| Modifier and Type | Method and Description | 
|---|---|
default boolean | 
isGreaterThan(T other)
Compares if this object is greater than the specified object. 
 | 
default boolean | 
isLessThan(T other)
Compares if this object is less than the specified object. 
 | 
compareTodefault boolean isLessThan(T other)
other - the object to be compareddefault boolean isGreaterThan(T other)
other - the object to be compared