io.sarl.lang.core.scoping.extensions.numbers.comparison
Class IntegerComparisonExtensions
final class IntegerComparisonExtensions
extends java.lang.Object
Provide static comparison operators for numbers of type Integer.
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(Integer,long)
The binary equals operator.
static boolean operator_equals(Integer,byte)
The binary equals operator.
static boolean operator_equals(Integer,int)
The binary equals operator.
static boolean operator_equals(Integer,short)
The binary equals operator.
static boolean operator_equals(Integer,double)
The binary equals operator.
static boolean operator_equals(Integer,float)
The binary equals operator.
static boolean operator_equals(Integer,Number)
The binary equals operator.
static boolean operator_greaterEqualsThan(Integer,long)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Integer,byte)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Integer,int)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Integer,short)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Integer,double)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Integer,float)
The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(Integer,Number)
The binary greaterEqualsThan operator.
static boolean operator_greaterThan(Integer,long)
The binary greaterThan operator.
static boolean operator_greaterThan(Integer,byte)
The binary greaterThan operator.
static boolean operator_greaterThan(Integer,int)
The binary greaterThan operator.
static boolean operator_greaterThan(Integer,short)
The binary greaterThan operator.
static boolean operator_greaterThan(Integer,double)
The binary greaterThan operator.
static boolean operator_greaterThan(Integer,float)
The binary greaterThan operator.
static boolean operator_greaterThan(Integer,Number)
The binary greaterThan operator.
static boolean operator_lessEqualsThan(Integer,long)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Integer,byte)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Integer,int)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Integer,short)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Integer,double)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Integer,float)
The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(Integer,Number)
The binary lessEqualsThan operator.
static boolean operator_lessThan(Integer,long)
The binary lessThan operator.
static boolean operator_lessThan(Integer,byte)
The binary lessThan operator.
static boolean operator_lessThan(Integer,int)
The binary lessThan operator.
static boolean operator_lessThan(Integer,short)
The binary lessThan operator.
static boolean operator_lessThan(Integer,double)
The binary lessThan operator.
static boolean operator_lessThan(Integer,float)
The binary lessThan operator.
static boolean operator_lessThan(Integer,Number)
The binary lessThan operator.
static boolean operator_notEquals(Integer,long)
The binary notEquals operator.
static boolean operator_notEquals(Integer,byte)
The binary notEquals operator.
static boolean operator_notEquals(Integer,int)
The binary notEquals operator.
static boolean operator_notEquals(Integer,short)
The binary notEquals operator.
static boolean operator_notEquals(Integer,double)
The binary notEquals operator.
static boolean operator_notEquals(Integer,float)
The binary notEquals operator.
static boolean operator_notEquals(Integer,Number)
The binary notEquals operator.
static int operator_spaceship(Integer,byte)
The number comparison operator.
static int operator_spaceship(Integer,short)
The number comparison operator.
static int operator_spaceship(Integer,int)
The number comparison operator.
static int operator_spaceship(Integer,long)
The number comparison operator.
static int operator_spaceship(Integer,float)
The number comparison operator.
static int operator_spaceship(Integer,double)
The number comparison operator.
static int operator_spaceship(Integer,Byte)
The number comparison operator.
static int operator_spaceship(Integer,Double)
The number comparison operator.
static int operator_spaceship(Integer,Float)
The number comparison operator.
static int operator_spaceship(Integer,Integer)
The number comparison operator.
static int operator_spaceship(Integer,Long)
The number comparison operator.
static int operator_spaceship(Integer,Number)
The number comparison operator.
static int operator_spaceship(Integer,Short)
The number comparison operator.
static int operator_spaceship(Integer,AtomicInteger)
The number comparison operator.
static int operator_spaceship(Integer,AtomicLong)
The number comparison operator.
Action Details
operator_equals(Integer,long)
def operator_equals(Integer,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(Integer,byte)
def operator_equals(Integer,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(Integer,int)
def operator_equals(Integer,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(Integer,short)
def operator_equals(Integer,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(Integer,double)
def operator_equals(Integer,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(Integer,float)
def operator_equals(Integer,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(Integer,Number)
def operator_equals(Integer,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(Integer,long)
def operator_greaterEqualsThan(Integer,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(Integer,byte)
def operator_greaterEqualsThan(Integer,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(Integer,int)
def operator_greaterEqualsThan(Integer,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(Integer,short)
def operator_greaterEqualsThan(Integer,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(Integer,double)
def operator_greaterEqualsThan(Integer,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(Integer,float)
def operator_greaterEqualsThan(Integer,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(Integer,Number)
def operator_greaterEqualsThan(Integer,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(Integer,long)
def operator_greaterThan(Integer,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(Integer,byte)
def operator_greaterThan(Integer,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(Integer,int)
def operator_greaterThan(Integer,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(Integer,short)
def operator_greaterThan(Integer,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(Integer,double)
def operator_greaterThan(Integer,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(Integer,float)
def operator_greaterThan(Integer,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(Integer,Number)
def operator_greaterThan(Integer,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(Integer,long)
def operator_lessEqualsThan(Integer,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(Integer,byte)
def operator_lessEqualsThan(Integer,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(Integer,int)
def operator_lessEqualsThan(Integer,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(Integer,short)
def operator_lessEqualsThan(Integer,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(Integer,double)
def operator_lessEqualsThan(Integer,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(Integer,float)
def operator_lessEqualsThan(Integer,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(Integer,Number)
def operator_lessEqualsThan(Integer,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(Integer,long)
def operator_lessThan(Integer,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(Integer,byte)
def operator_lessThan(Integer,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(Integer,int)
def operator_lessThan(Integer,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(Integer,short)
def operator_lessThan(Integer,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(Integer,double)
def operator_lessThan(Integer,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(Integer,float)
def operator_lessThan(Integer,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(Integer,Number)
def operator_lessThan(Integer,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(Integer,long)
def operator_notEquals(Integer,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(Integer,byte)
def operator_notEquals(Integer,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(Integer,int)
def operator_notEquals(Integer,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(Integer,short)
def operator_notEquals(Integer,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(Integer,double)
def operator_notEquals(Integer,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(Integer,float)
def operator_notEquals(Integer,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(Integer,Number)
def operator_notEquals(Integer,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(Integer,byte)
def operator_spaceship(Integer,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(Integer,short)
def operator_spaceship(Integer,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(Integer,int)
def operator_spaceship(Integer,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(Integer,long)
def operator_spaceship(Integer,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(Integer,float)
def operator_spaceship(Integer,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(Integer,double)
def operator_spaceship(Integer,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(Integer,Byte)
def operator_spaceship(Integer,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(Integer,Double)
def operator_spaceship(Integer,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(Integer,Float)
def operator_spaceship(Integer,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(Integer,Integer)
def operator_spaceship(Integer,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(Integer,Long)
def operator_spaceship(Integer,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(Integer,Number)
def operator_spaceship(Integer,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(Integer,Short)
def operator_spaceship(Integer,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(Integer,AtomicInteger)
def operator_spaceship(Integer,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(Integer,AtomicLong)
def operator_spaceship(Integer,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 .