|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.lib.ComparableExtensions
public class ComparableExtensions
This is an extension library for comparables
.
Constructor Summary | |
---|---|
ComparableExtensions()
|
Method Summary | ||
---|---|---|
static
|
operator_greaterEqualsThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator greater than or equals . |
|
static
|
operator_greaterThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator greater than . |
|
static
|
operator_lessEqualsThan(java.lang.Comparable<? super C> left,
C right)
The comparison operator less than or equals . |
|
static
|
operator_lessThan(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 |