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