T
- type of instance to be comparedpublic interface RichComparable<T>
extends java.lang.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.
|
default boolean isLessThan(T other)
other
- the object to be compareddefault boolean isGreaterThan(T other)
other
- the object to be compared