io.sarl.lang.core.scoping.extensions.numbers.arithmetic
Class IntegerArithmeticExtensions
final class IntegerArithmeticExtensions
extends java.lang.Object
Provide static 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 long operator_divide(Integer,long)
The binary divide operator.
static int operator_divide(Integer,byte)
The binary divide operator.
static int operator_divide(Integer,int)
The binary divide operator.
static int operator_divide(Integer,short)
The binary divide operator.
static double operator_divide(Integer,double)
The binary divide operator.
static float operator_divide(Integer,float)
The binary divide operator.
static int operator_divide(Integer,Byte)
The binary divide operator.
static float operator_divide(Integer,Float)
The binary divide operator.
static int operator_divide(Integer,Integer)
The binary divide operator.
static long operator_divide(Integer,Long)
The binary divide operator.
static double operator_divide(Integer,Number)
The binary divide operator.
static int operator_divide(Integer,Short)
The binary divide operator.
static int operator_divide(Integer,AtomicInteger)
The binary divide operator.
static long operator_divide(Integer,AtomicLong)
The binary divide operator.
static int operator_minus(Integer)
The unary minus operator.
static long operator_minus(Integer,long)
The binary minus operator.
static int operator_minus(Integer,byte)
The binary minus operator.
static int operator_minus(Integer,int)
The binary minus operator.
static int operator_minus(Integer,short)
The binary minus operator.
static double operator_minus(Integer,double)
The binary minus operator.
static float operator_minus(Integer,float)
The binary minus operator.
static int operator_minus(Integer,Byte)
The binary minus operator.
static float operator_minus(Integer,Float)
The binary minus operator.
static int operator_minus(Integer,Integer)
The binary minus operator.
static long operator_minus(Integer,Long)
The binary minus operator.
static double operator_minus(Integer,Number)
The binary minus operator.
static int operator_minus(Integer,Short)
The binary minus operator.
static int operator_minus(Integer,AtomicInteger)
The binary minus operator.
static long operator_minus(Integer,AtomicLong)
The binary minus operator.
static long operator_modulo(Integer,long)
The binary modulo operator.
static int operator_modulo(Integer,byte)
The binary modulo operator.
static int operator_modulo(Integer,int)
The binary modulo operator.
static int operator_modulo(Integer,short)
The binary modulo operator.
static double operator_modulo(Integer,double)
The binary modulo operator.
static float operator_modulo(Integer,float)
The binary modulo operator.
static int operator_modulo(Integer,Byte)
The binary modulo operator.
static float operator_modulo(Integer,Float)
The binary modulo operator.
static int operator_modulo(Integer,Integer)
The binary modulo operator.
static long operator_modulo(Integer,Long)
The binary modulo operator.
static double operator_modulo(Integer,Number)
The binary modulo operator.
static int operator_modulo(Integer,Short)
The binary modulo operator.
static int operator_modulo(Integer,AtomicInteger)
The binary modulo operator.
static long operator_modulo(Integer,AtomicLong)
The binary modulo operator.
static long operator_multiply(Integer,long)
The binary multiply operator.
static int operator_multiply(Integer,byte)
The binary multiply operator.
static int operator_multiply(Integer,int)
The binary multiply operator.
static int operator_multiply(Integer,short)
The binary multiply operator.
static double operator_multiply(Integer,double)
The binary multiply operator.
static float operator_multiply(Integer,float)
The binary multiply operator.
static int operator_multiply(Integer,Byte)
The binary multiply operator.
static float operator_multiply(Integer,Float)
The binary multiply operator.
static int operator_multiply(Integer,Integer)
The binary multiply operator.
static long operator_multiply(Integer,Long)
The binary multiply operator.
static double operator_multiply(Integer,Number)
The binary multiply operator.
static int operator_multiply(Integer,Short)
The binary multiply operator.
static int operator_multiply(Integer,AtomicInteger)
The binary multiply operator.
static long operator_multiply(Integer,AtomicLong)
The binary multiply operator.
static long operator_plus(Integer,long)
The binary plus operator.
static int operator_plus(Integer,byte)
The binary plus operator.
static int operator_plus(Integer,int)
The binary plus operator.
static int operator_plus(Integer,short)
The binary plus operator.
static double operator_plus(Integer,double)
The binary plus operator.
static float operator_plus(Integer,float)
The binary plus operator.
static int operator_plus(Integer,Byte)
The binary plus operator.
static float operator_plus(Integer,Float)
The binary plus operator.
static int operator_plus(Integer,Integer)
The binary plus operator.
static long operator_plus(Integer,Long)
The binary plus operator.
static double operator_plus(Integer,Number)
The binary plus operator.
static int operator_plus(Integer,Short)
The binary plus operator.
static int operator_plus(Integer,AtomicInteger)
The binary plus operator.
static long operator_plus(Integer,AtomicLong)
The binary plus operator.
static double operator_power(Integer,long)
The binary power operator.
static double operator_power(Integer,byte)
The binary power operator.
static double operator_power(Integer,int)
The binary power operator.
static double operator_power(Integer,short)
The binary power operator.
static double operator_power(Integer,double)
The binary power operator.
static double operator_power(Integer,float)
The binary power operator.
static double operator_power(Integer,Number)
The binary power operator.
Action Details
operator_divide(Integer,long)
def operator_divide(Integer,long) : long
The binary divide 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_divide(Integer,byte)
def operator_divide(Integer,byte) : int
The binary divide 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_divide(Integer,int)
def operator_divide(Integer,int) : int
The binary divide 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_divide(Integer,short)
def operator_divide(Integer,short) : int
The binary divide 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_divide(Integer,double)
def operator_divide(Integer,double) : double
The binary divide 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_divide(Integer,float)
def operator_divide(Integer,float) : float
The binary divide 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_divide(Integer,Byte)
def operator_divide(Integer,Byte) : int
The binary divide 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_divide(Integer,Float)
def operator_divide(Integer,Float) : float
The binary divide 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_divide(Integer,Integer)
def operator_divide(Integer,Integer) : int
The binary divide 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_divide(Integer,Long)
def operator_divide(Integer,Long) : long
The binary divide 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_divide(Integer,Number)
def operator_divide(Integer,Number) : double
The binary divide 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_divide(Integer,Short)
def operator_divide(Integer,Short) : int
The binary divide 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_divide(Integer,AtomicInteger)
def operator_divide(Integer,AtomicInteger) : int
The binary divide 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_divide(Integer,AtomicLong)
def operator_divide(Integer,AtomicLong) : long
The binary divide 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_minus(Integer)
def operator_minus(Integer) : int
The unary minus operator. This is the equivalent to the Java's - function. This function is not null-safe.
Parameters:
number - a number.
Returns:
-number
operator_minus(Integer,long)
def operator_minus(Integer,long) : long
The binary minus 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_minus(Integer,byte)
def operator_minus(Integer,byte) : int
The binary minus 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_minus(Integer,int)
def operator_minus(Integer,int) : int
The binary minus 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_minus(Integer,short)
def operator_minus(Integer,short) : int
The binary minus 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_minus(Integer,double)
def operator_minus(Integer,double) : double
The binary minus 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_minus(Integer,float)
def operator_minus(Integer,float) : float
The binary minus 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_minus(Integer,Byte)
def operator_minus(Integer,Byte) : int
The binary minus 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_minus(Integer,Float)
def operator_minus(Integer,Float) : float
The binary minus 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_minus(Integer,Integer)
def operator_minus(Integer,Integer) : int
The binary minus 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_minus(Integer,Long)
def operator_minus(Integer,Long) : long
The binary minus 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_minus(Integer,Number)
def operator_minus(Integer,Number) : double
The binary minus 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_minus(Integer,Short)
def operator_minus(Integer,Short) : int
The binary minus 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_minus(Integer,AtomicInteger)
def operator_minus(Integer,AtomicInteger) : int
The binary minus 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_minus(Integer,AtomicLong)
def operator_minus(Integer,AtomicLong) : long
The binary minus 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_modulo(Integer,long)
def operator_modulo(Integer,long) : long
The binary modulo 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_modulo(Integer,byte)
def operator_modulo(Integer,byte) : int
The binary modulo 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_modulo(Integer,int)
def operator_modulo(Integer,int) : int
The binary modulo 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_modulo(Integer,short)
def operator_modulo(Integer,short) : int
The binary modulo 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_modulo(Integer,double)
def operator_modulo(Integer,double) : double
The binary modulo 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_modulo(Integer,float)
def operator_modulo(Integer,float) : float
The binary modulo 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_modulo(Integer,Byte)
def operator_modulo(Integer,Byte) : int
The binary modulo 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_modulo(Integer,Float)
def operator_modulo(Integer,Float) : float
The binary modulo 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_modulo(Integer,Integer)
def operator_modulo(Integer,Integer) : int
The binary modulo 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_modulo(Integer,Long)
def operator_modulo(Integer,Long) : long
The binary modulo 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_modulo(Integer,Number)
def operator_modulo(Integer,Number) : double
The binary modulo 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_modulo(Integer,Short)
def operator_modulo(Integer,Short) : int
The binary modulo 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_modulo(Integer,AtomicInteger)
def operator_modulo(Integer,AtomicInteger) : int
The binary modulo 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_modulo(Integer,AtomicLong)
def operator_modulo(Integer,AtomicLong) : long
The binary modulo 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_multiply(Integer,long)
def operator_multiply(Integer,long) : long
The binary multiply 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_multiply(Integer,byte)
def operator_multiply(Integer,byte) : int
The binary multiply 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_multiply(Integer,int)
def operator_multiply(Integer,int) : int
The binary multiply 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_multiply(Integer,short)
def operator_multiply(Integer,short) : int
The binary multiply 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_multiply(Integer,double)
def operator_multiply(Integer,double) : double
The binary multiply 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_multiply(Integer,float)
def operator_multiply(Integer,float) : float
The binary multiply 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_multiply(Integer,Byte)
def operator_multiply(Integer,Byte) : int
The binary multiply 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_multiply(Integer,Float)
def operator_multiply(Integer,Float) : float
The binary multiply 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_multiply(Integer,Integer)
def operator_multiply(Integer,Integer) : int
The binary multiply 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_multiply(Integer,Long)
def operator_multiply(Integer,Long) : long
The binary multiply 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_multiply(Integer,Number)
def operator_multiply(Integer,Number) : double
The binary multiply 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_multiply(Integer,Short)
def operator_multiply(Integer,Short) : int
The binary multiply 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_multiply(Integer,AtomicInteger)
def operator_multiply(Integer,AtomicInteger) : int
The binary multiply 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_multiply(Integer,AtomicLong)
def operator_multiply(Integer,AtomicLong) : long
The binary multiply 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_plus(Integer,long)
def operator_plus(Integer,long) : long
The binary plus 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_plus(Integer,byte)
def operator_plus(Integer,byte) : int
The binary plus 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_plus(Integer,int)
def operator_plus(Integer,int) : int
The binary plus 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_plus(Integer,short)
def operator_plus(Integer,short) : int
The binary plus 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_plus(Integer,double)
def operator_plus(Integer,double) : double
The binary plus 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_plus(Integer,float)
def operator_plus(Integer,float) : float
The binary plus 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_plus(Integer,Byte)
def operator_plus(Integer,Byte) : int
The binary plus 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_plus(Integer,Float)
def operator_plus(Integer,Float) : float
The binary plus 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_plus(Integer,Integer)
def operator_plus(Integer,Integer) : int
The binary plus 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_plus(Integer,Long)
def operator_plus(Integer,Long) : long
The binary plus 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_plus(Integer,Number)
def operator_plus(Integer,Number) : double
The binary plus 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_plus(Integer,Short)
def operator_plus(Integer,Short) : int
The binary plus operator. This is the equivalent to the Java + operator.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Integer,AtomicInteger)
def operator_plus(Integer,AtomicInteger) : int
The binary plus 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_plus(Integer,AtomicLong)
def operator_plus(Integer,AtomicLong) : long
The binary plus 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_power(Integer,long)
def operator_power(Integer,long) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Integer,byte)
def operator_power(Integer,byte) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Integer,int)
def operator_power(Integer,int) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Integer,short)
def operator_power(Integer,short) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Integer,double)
def operator_power(Integer,double) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Integer,float)
def operator_power(Integer,float) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Integer,Number)
def operator_power(Integer,Number) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)