@GwtCompatible
public class ComparableExtensions
extends java.lang.Object
comparables.| Constructor and Description |
|---|
ComparableExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <C> boolean |
operator_greaterEqualsThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator
greater than or equals. |
static <C> boolean |
operator_greaterThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator
greater than. |
static <C> boolean |
operator_lessEqualsThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator
less than or equals. |
static <C> boolean |
operator_lessThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator
less than. |
static <C> int |
operator_spaceship(java.lang.Comparable<? super C> left,
C right)
The spaceship operator
<=>. |
public static <C> boolean operator_lessThan(java.lang.Comparable<? super C> left,
C right)
less than.left - a comparableright - the value to compare withleft.compareTo(right) < 0public static <C> boolean operator_greaterThan(java.lang.Comparable<? super C> left,
C right)
greater than.left - a comparableright - the value to compare withleft.compareTo(right) > 0public static <C> boolean operator_lessEqualsThan(java.lang.Comparable<? super C> left,
C right)
less than or equals.left - a comparableright - the value to compare withleft.compareTo(right) <= 0public static <C> boolean operator_greaterEqualsThan(java.lang.Comparable<? super C> left,
C right)
greater than or equals.left - a comparableright - the value to compare withleft.compareTo(right) >= 0public static <C> int operator_spaceship(java.lang.Comparable<? super C> left,
C right)
<=>.left - a comparableright - the value to compare withleft.compareTo(right)