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