io.sarl.lang.core.scoping.extensions.numbers.comparison
Class NumberComparisonExtensions
final class NumberComparisonExtensions
extends java.lang.Object
Provide static comparison operators for numbers of type Number.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.7
See:
"https://github.com/eclipse/xtext-extras/issues/186"
Action Summary
Modifier and type Action and description
static boolean operator_equals(Number,long)
The binary equals operator.
static boolean operator_equals(Number,byte)
The binary equals operator.
static boolean operator_equals(Number,int)
The binary equals operator.
static boolean operator_equals(Number,short)
The binary equals operator.
static boolean operator_equals(Number,double)
The binary equals operator.
static boolean operator_equals(Number,float)
The binary equals operator.
static boolean operator_equals(Number,Number)
The binary equals operator.
static boolean operator_greaterEqualsThan(Number,long)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Number,byte)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Number,int)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Number,short)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Number,double)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Number,float)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Number,Number)
The binary greaterEqualsThan operator.
static boolean operator_greaterThan(Number,long)
The binary greaterThan operator.
static boolean operator_greaterThan(Number,byte)
The binary greaterThan operator.
static boolean operator_greaterThan(Number,int)
The binary greaterThan operator.
static boolean operator_greaterThan(Number,short)
The binary greaterThan operator.
static boolean operator_greaterThan(Number,double)
The binary greaterThan operator.
static boolean operator_greaterThan(Number,float)
The binary greaterThan operator.
static boolean operator_greaterThan(Number,Number)
The binary greaterThan operator.
static boolean operator_lessEqualsThan(Number,long)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Number,byte)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Number,int)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Number,short)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Number,double)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Number,float)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Number,Number)
The binary lessEqualsThan operator.
static boolean operator_lessThan(Number,long)
The binary lessThan operator.
static boolean operator_lessThan(Number,byte)
The binary lessThan operator.
static boolean operator_lessThan(Number,int)
The binary lessThan operator.
static boolean operator_lessThan(Number,short)
The binary lessThan operator.
static boolean operator_lessThan(Number,double)
The binary lessThan operator.
static boolean operator_lessThan(Number,float)
The binary lessThan operator.
static boolean operator_lessThan(Number,Number)
The binary lessThan operator.
static boolean operator_notEquals(Number,long)
The binary notEquals operator.
static boolean operator_notEquals(Number,byte)
The binary notEquals operator.
static boolean operator_notEquals(Number,int)
The binary notEquals operator.
static boolean operator_notEquals(Number,short)
The binary notEquals operator.
static boolean operator_notEquals(Number,double)
The binary notEquals operator.
static boolean operator_notEquals(Number,float)
The binary notEquals operator.
static boolean operator_notEquals(Number,Number)
The binary notEquals operator.
static int operator_spaceship(Number,byte)
The number comparison operator.
static int operator_spaceship(Number,short)
The number comparison operator.
static int operator_spaceship(Number,int)
The number comparison operator.
static int operator_spaceship(Number,long)
The number comparison operator.
static int operator_spaceship(Number,float)
The number comparison operator.
static int operator_spaceship(Number,double)
The number comparison operator.
static int operator_spaceship(Number,Byte)
The number comparison operator.
static int operator_spaceship(Number,Double)
The number comparison operator.
static int operator_spaceship(Number,Float)
The number comparison operator.
static int operator_spaceship(Number,Integer)
The number comparison operator.
static int operator_spaceship(Number,Long)
The number comparison operator.
static int operator_spaceship(Number,Number)
The number comparison operator.
static int operator_spaceship(Number,Short)
The number comparison operator.
static int operator_spaceship(Number,AtomicInteger)
The number comparison operator.
static int operator_spaceship(Number,AtomicLong)
The number comparison operator.
Action Details
operator_equals(Number,long)
def operator_equals(Number,long) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_equals(Number,byte)
def operator_equals(Number,byte) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_equals(Number,int)
def operator_equals(Number,int) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_equals(Number,short)
def operator_equals(Number,short) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_equals(Number,double)
def operator_equals(Number,double) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_equals(Number,float)
def operator_equals(Number,float) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_equals(Number,Number)
def operator_equals(Number,Number) : boolean
The binary equals operator. This is the equivalent to the Java == operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left==right
operator_greaterEqualsThan(Number,long)
def operator_greaterEqualsThan(Number,long) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterEqualsThan(Number,byte)
def operator_greaterEqualsThan(Number,byte) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterEqualsThan(Number,int)
def operator_greaterEqualsThan(Number,int) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterEqualsThan(Number,short)
def operator_greaterEqualsThan(Number,short) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterEqualsThan(Number,double)
def operator_greaterEqualsThan(Number,double) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterEqualsThan(Number,float)
def operator_greaterEqualsThan(Number,float) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterEqualsThan(Number,Number)
def operator_greaterEqualsThan(Number,Number) : boolean
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>=right
operator_greaterThan(Number,long)
def operator_greaterThan(Number,long) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_greaterThan(Number,byte)
def operator_greaterThan(Number,byte) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_greaterThan(Number,int)
def operator_greaterThan(Number,int) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_greaterThan(Number,short)
def operator_greaterThan(Number,short) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_greaterThan(Number,double)
def operator_greaterThan(Number,double) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_greaterThan(Number,float)
def operator_greaterThan(Number,float) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_greaterThan(Number,Number)
def operator_greaterThan(Number,Number) : boolean
The binary greaterThan operator. This is the equivalent to the Java > operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left>right
operator_lessEqualsThan(Number,long)
def operator_lessEqualsThan(Number,long) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessEqualsThan(Number,byte)
def operator_lessEqualsThan(Number,byte) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessEqualsThan(Number,int)
def operator_lessEqualsThan(Number,int) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessEqualsThan(Number,short)
def operator_lessEqualsThan(Number,short) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessEqualsThan(Number,double)
def operator_lessEqualsThan(Number,double) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessEqualsThan(Number,float)
def operator_lessEqualsThan(Number,float) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessEqualsThan(Number,Number)
def operator_lessEqualsThan(Number,Number) : boolean
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<=right
operator_lessThan(Number,long)
def operator_lessThan(Number,long) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_lessThan(Number,byte)
def operator_lessThan(Number,byte) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_lessThan(Number,int)
def operator_lessThan(Number,int) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_lessThan(Number,short)
def operator_lessThan(Number,short) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_lessThan(Number,double)
def operator_lessThan(Number,double) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_lessThan(Number,float)
def operator_lessThan(Number,float) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_lessThan(Number,Number)
def operator_lessThan(Number,Number) : boolean
The binary lessThan operator. This is the equivalent to the Java < operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left<right
operator_notEquals(Number,long)
def operator_notEquals(Number,long) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_notEquals(Number,byte)
def operator_notEquals(Number,byte) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_notEquals(Number,int)
def operator_notEquals(Number,int) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_notEquals(Number,short)
def operator_notEquals(Number,short) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_notEquals(Number,double)
def operator_notEquals(Number,double) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_notEquals(Number,float)
def operator_notEquals(Number,float) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_notEquals(Number,Number)
def operator_notEquals(Number,Number) : boolean
The binary notEquals operator. This is the equivalent to the Java != operator. This function is null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left!=right
operator_spaceship(Number,byte)
def operator_spaceship(Number,byte) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,short)
def operator_spaceship(Number,short) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,int)
def operator_spaceship(Number,int) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,long)
def operator_spaceship(Number,long) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,float)
def operator_spaceship(Number,float) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,double)
def operator_spaceship(Number,double) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Byte)
def operator_spaceship(Number,Byte) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Double)
def operator_spaceship(Number,Double) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Float)
def operator_spaceship(Number,Float) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Integer)
def operator_spaceship(Number,Integer) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Long)
def operator_spaceship(Number,Long) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Number)
def operator_spaceship(Number,Number) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,Short)
def operator_spaceship(Number,Short) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,AtomicInteger)
def operator_spaceship(Number,AtomicInteger) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .
operator_spaceship(Number,AtomicLong)
def operator_spaceship(Number,AtomicLong) : int
The number comparison operator. This is equivalent to the Java compareTo function on numbers. This function is null-safe.
Parameters:
left - a number
right - a number.
Returns:
the value 0 if left == right ; a value less than 0 if left < right ; and a value greater than 0 if left > right .