|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.xtext.xbase.lib.ComparableExtensions
public class ComparableExtensions
This is an extension library for comparables.
| Constructor Summary | |
|---|---|
ComparableExtensions()
|
|
| Method Summary | ||
|---|---|---|
static
|
operator_greaterEqualsThan(Comparable<? super C> left,
C right)
The comparison operator greater than or equals. |
|
static
|
operator_greaterThan(Comparable<? super C> left,
C right)
The comparison operator greater than. |
|
static
|
operator_lessEqualsThan(Comparable<? super C> left,
C right)
The comparison operator less than or equals. |
|
static
|
operator_lessThan(Comparable<? super C> left,
C right)
The comparison operator less than. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComparableExtensions()
| Method Detail |
|---|
public static <C> boolean operator_lessThan(Comparable<? super C> left,
C right)
less than.
left - a comparableright - the value to compare with
left.compareTo(right) < 0
public static <C> boolean operator_greaterThan(Comparable<? super C> left,
C right)
greater than.
left - a comparableright - the value to compare with
left.compareTo(right) > 0
public static <C> boolean operator_lessEqualsThan(Comparable<? super C> left,
C right)
less than or equals.
left - a comparableright - the value to compare with
left.compareTo(right) <= 0
public static <C> boolean operator_greaterEqualsThan(Comparable<? super C> left,
C right)
greater than or equals.
left - a comparableright - the value to compare with
left.compareTo(right) >= 0
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||