org.eclipse.xtext.xbase.lib
Class IntegerExtensions

java.lang.Object
  extended by org.eclipse.xtext.xbase.lib.IntegerExtensions

public class IntegerExtensions
extends Object

This is an extension library for integral numbers, e.g. int or Integer.

Since:
2.3
Author:
Sven Efftinge - Initial contribution and API, Jan Koehnlein - Primitive versions

Constructor Summary
IntegerExtensions()
           
 
Method Summary
static int bitwiseAnd(int a, int b)
          The bitwise and operation.
static int bitwiseNot(int a)
          The bitwise complement operation.
static int bitwiseOr(int a, int b)
          The bitwise inclusive or operation.
static int bitwiseXor(int a, int b)
          The bitwise exclusive or operation.
static int operator_divide(int a, byte b)
          The binary divide operator.
static int operator_divide(int a, char b)
          The binary divide operator.
static double operator_divide(int a, double b)
          The binary divide operator.
static float operator_divide(int a, float b)
          The binary divide operator.
static int operator_divide(int a, int b)
          The binary divide operator.
static long operator_divide(int a, long b)
          The binary divide operator.
static int operator_divide(int a, short b)
          The binary divide operator.
static int operator_doubleGreaterThan(int a, int distance)
          The binary signed right sift operator.
static int operator_doubleLessThan(int a, int distance)
          The binary signed left shift operator.
static boolean operator_equals(int a, byte b)
          The binary equals operator.
static boolean operator_equals(int a, char b)
          The binary equals operator.
static boolean operator_equals(int a, double b)
          The binary equals operator.
static boolean operator_equals(int a, float b)
          The binary equals operator.
static boolean operator_equals(int a, int b)
          The binary equals operator.
static boolean operator_equals(int a, long b)
          The binary equals operator.
static boolean operator_equals(int a, short b)
          The binary equals operator.
static boolean operator_greaterEqualsThan(int a, byte b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(int a, char b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(int a, double b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(int a, float b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(int a, int b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(int a, long b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterEqualsThan(int a, short b)
          The binary greaterEqualsThan operator.
static boolean operator_greaterThan(int a, byte b)
          The binary greaterThan operator.
static boolean operator_greaterThan(int a, char b)
          The binary greaterThan operator.
static boolean operator_greaterThan(int a, double b)
          The binary greaterThan operator.
static boolean operator_greaterThan(int a, float b)
          The binary greaterThan operator.
static boolean operator_greaterThan(int a, int b)
          The binary greaterThan operator.
static boolean operator_greaterThan(int a, long b)
          The binary greaterThan operator.
static boolean operator_greaterThan(int a, short b)
          The binary greaterThan operator.
static boolean operator_lessEqualsThan(int a, byte b)
          The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(int a, char b)
          The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(int a, double b)
          The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(int a, float b)
          The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(int a, int b)
          The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(int a, long b)
          The binary lessEqualsThan operator.
static boolean operator_lessEqualsThan(int a, short b)
          The binary lessEqualsThan operator.
static boolean operator_lessThan(int a, byte b)
          The binary lessThan operator.
static boolean operator_lessThan(int a, char b)
          The binary lessThan operator.
static boolean operator_lessThan(int a, double b)
          The binary lessThan operator.
static boolean operator_lessThan(int a, float b)
          The binary lessThan operator.
static boolean operator_lessThan(int a, int b)
          The binary lessThan operator.
static boolean operator_lessThan(int a, long b)
          The binary lessThan operator.
static boolean operator_lessThan(int a, short b)
          The binary lessThan operator.
static int operator_minus(int a)
          The unary minus operator.
static int operator_minus(int a, byte b)
          The binary minus operator.
static int operator_minus(int a, char b)
          The binary minus operator.
static double operator_minus(int a, double b)
          The binary minus operator.
static float operator_minus(int a, float b)
          The binary minus operator.
static int operator_minus(int a, int b)
          The binary minus operator.
static long operator_minus(int a, long b)
          The binary minus operator.
static int operator_minus(int a, short b)
          The binary minus operator.
static int operator_modulo(int a, byte b)
          The binary modulo operator.
static int operator_modulo(int a, char b)
          The binary modulo operator.
static double operator_modulo(int a, double b)
          The binary modulo operator.
static float operator_modulo(int a, float b)
          The binary modulo operator.
static int operator_modulo(int a, int b)
          The binary modulo operator.
static long operator_modulo(int a, long b)
          The binary modulo operator.
static int operator_modulo(int a, short b)
          The binary modulo operator.
static int operator_multiply(int a, byte b)
          The binary multiply operator.
static int operator_multiply(int a, char b)
          The binary multiply operator.
static double operator_multiply(int a, double b)
          The binary multiply operator.
static float operator_multiply(int a, float b)
          The binary multiply operator.
static int operator_multiply(int a, int b)
          The binary multiply operator.
static long operator_multiply(int a, long b)
          The binary multiply operator.
static int operator_multiply(int a, short b)
          The binary multiply operator.
static boolean operator_notEquals(int a, byte b)
          The binary notEquals operator.
static boolean operator_notEquals(int a, char b)
          The binary notEquals operator.
static boolean operator_notEquals(int a, double b)
          The binary notEquals operator.
static boolean operator_notEquals(int a, float b)
          The binary notEquals operator.
static boolean operator_notEquals(int a, int b)
          The binary notEquals operator.
static boolean operator_notEquals(int a, long b)
          The binary notEquals operator.
static boolean operator_notEquals(int a, short b)
          The binary notEquals operator.
static int operator_plus(int a, byte b)
          The binary plus operator.
static int operator_plus(int a, char b)
          The binary plus operator.
static double operator_plus(int a, double b)
          The binary plus operator.
static float operator_plus(int a, float b)
          The binary plus operator.
static int operator_plus(int a, int b)
          The binary plus operator.
static long operator_plus(int a, long b)
          The binary plus operator.
static int operator_plus(int a, short b)
          The binary plus operator.
static double operator_power(int a, byte b)
          The binary power operator.
static double operator_power(int a, char b)
          The binary power operator.
static double operator_power(int a, double b)
          The binary power operator.
static double operator_power(int a, float b)
          The binary power operator.
static double operator_power(int a, int b)
          The binary power operator.
static double operator_power(int a, long b)
          The binary power operator.
static double operator_power(int a, short b)
          The binary power operator.
static int operator_tripleGreaterThan(int a, int distance)
          The binary unsigned right shift operator.
static IntegerRange operator_upTo(int a, int b)
          The .. operator yields an IntegerRange.
static int shiftLeft(int a, int distance)
          Deprecated. use operator_doubleLessThan(int, int) instead
static int shiftRight(int a, int distance)
          Deprecated. use operator_doubleGreaterThan(int, int) instead
static int shiftRightUnsigned(int a, int distance)
          Deprecated. use operator_tripleGreaterThan(int, int) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerExtensions

public IntegerExtensions()
Method Detail

operator_upTo

public static IntegerRange operator_upTo(int a,
                                         int b)
The .. operator yields an IntegerRange.

Parameters:
a - the start of the range.
b - the end of the range.
Returns:
an IntegerRange. Never null.
Since:
2.3

bitwiseOr

public static int bitwiseOr(int a,
                            int b)
The bitwise inclusive or operation. This is the equivalent to the java | operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a|b

bitwiseXor

public static int bitwiseXor(int a,
                             int b)
The bitwise exclusive or operation. This is the equivalent to the java ^ operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a^b

bitwiseAnd

public static int bitwiseAnd(int a,
                             int b)
The bitwise and operation. This is the equivalent to the java & operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a&b

bitwiseNot

public static int bitwiseNot(int a)
The bitwise complement operation. This is the equivalent to the java ~ operator.

Parameters:
a - an integer.
Returns:
the bitwise complement of a.

shiftLeft

@Deprecated
public static int shiftLeft(int a,
                                       int distance)
Deprecated. use operator_doubleLessThan(int, int) instead

The binary signed left shift operator. This is the equivalent to the java << operator. Fills in a zero as the least significant bit.

Parameters:
a - an integer.
distance - the number of times to shift.
Returns:
a<<distance

operator_doubleLessThan

public static int operator_doubleLessThan(int a,
                                          int distance)
The binary signed left shift operator. This is the equivalent to the java << operator. Fills in a zero as the least significant bit.

Parameters:
a - an integer.
distance - the number of times to shift.
Returns:
a<<distance
Since:
2.3

shiftRight

@Deprecated
public static int shiftRight(int a,
                                        int distance)
Deprecated. use operator_doubleGreaterThan(int, int) instead

The binary signed right sift operator. This is the equivalent to the java >> operator. Shifts in the value of the sign bit as the leftmost bit, thus preserving the sign of the initial value.

Parameters:
a - an integer.
distance - the number of times to shift.
Returns:
a>>distance

operator_doubleGreaterThan

public static int operator_doubleGreaterThan(int a,
                                             int distance)
The binary signed right sift operator. This is the equivalent to the java >> operator. Shifts in the value of the sign bit as the leftmost bit, thus preserving the sign of the initial value.

Parameters:
a - an integer.
distance - the number of times to shift.
Returns:
a>>distance
Since:
2.3

shiftRightUnsigned

@Deprecated
public static int shiftRightUnsigned(int a,
                                                int distance)
Deprecated. use operator_tripleGreaterThan(int, int) instead

The binary unsigned right shift operator. This is the equivalent to the java >>> operator. Shifts in zeros into as leftmost bits, thus always yielding a positive integer.

Parameters:
a - an integer.
distance - the number of times to shift.
Returns:
a>>>distance

operator_tripleGreaterThan

public static int operator_tripleGreaterThan(int a,
                                             int distance)
The binary unsigned right shift operator. This is the equivalent to the java >>> operator. Shifts in zeros into as leftmost bits, thus always yielding a positive integer.

Parameters:
a - an integer.
distance - the number of times to shift.
Returns:
a>>>distance
Since:
2.3

operator_minus

public static int operator_minus(int a)
The unary minus operator. This is the equivalent to the Java's - function.

Parameters:
a - an integer.
Returns:
-a
Since:
2.3

operator_plus

public static double operator_plus(int a,
                                   double b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - a double.
Returns:
a+b
Since:
2.3

operator_minus

public static double operator_minus(int a,
                                    double b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - a double.
Returns:
a-b
Since:
2.3

operator_multiply

public static double operator_multiply(int a,
                                       double b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - a double.
Returns:
a*b
Since:
2.3

operator_divide

public static double operator_divide(int a,
                                     double b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - a double.
Returns:
a/b
Since:
2.3

operator_modulo

public static double operator_modulo(int a,
                                     double b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - a double.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        double b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - a double.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              double b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - a double.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           double b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - a double.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 double b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - a double.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      double b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - a double.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         double b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - a double.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    double b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - a double.
Returns:
Math.pow(a, b)
Since:
2.3

operator_plus

public static float operator_plus(int a,
                                  float b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - a float.
Returns:
a+b
Since:
2.3

operator_minus

public static float operator_minus(int a,
                                   float b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - a float.
Returns:
a-b
Since:
2.3

operator_multiply

public static float operator_multiply(int a,
                                      float b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - a float.
Returns:
a*b
Since:
2.3

operator_divide

public static float operator_divide(int a,
                                    float b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - a float.
Returns:
a/b
Since:
2.3

operator_modulo

public static float operator_modulo(int a,
                                    float b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - a float.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        float b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - a float.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              float b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - a float.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           float b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - a float.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 float b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - a float.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      float b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - a float.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         float b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - a float.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    float b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - a float.
Returns:
Math.pow(a, b)
Since:
2.3

operator_plus

public static long operator_plus(int a,
                                 long b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - a long.
Returns:
a+b
Since:
2.3

operator_minus

public static long operator_minus(int a,
                                  long b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - a long.
Returns:
a-b
Since:
2.3

operator_multiply

public static long operator_multiply(int a,
                                     long b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - a long.
Returns:
a*b
Since:
2.3

operator_divide

public static long operator_divide(int a,
                                   long b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - a long.
Returns:
a/b
Since:
2.3

operator_modulo

public static long operator_modulo(int a,
                                   long b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - a long.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        long b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - a long.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              long b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - a long.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           long b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - a long.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 long b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - a long.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      long b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - a long.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         long b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - a long.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    long b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - a long.
Returns:
Math.pow(a, b)
Since:
2.3

operator_plus

public static int operator_plus(int a,
                                int b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a+b
Since:
2.3

operator_minus

public static int operator_minus(int a,
                                 int b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a-b
Since:
2.3

operator_multiply

public static int operator_multiply(int a,
                                    int b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a*b
Since:
2.3

operator_divide

public static int operator_divide(int a,
                                  int b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a/b
Since:
2.3

operator_modulo

public static int operator_modulo(int a,
                                  int b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        int b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              int b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           int b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 int b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      int b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         int b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - an integer.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    int b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - an integer.
Returns:
Math.pow(a, b)
Since:
2.3

operator_plus

public static int operator_plus(int a,
                                char b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - a character.
Returns:
a+b
Since:
2.3

operator_minus

public static int operator_minus(int a,
                                 char b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - a character.
Returns:
a-b
Since:
2.3

operator_multiply

public static int operator_multiply(int a,
                                    char b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - a character.
Returns:
a*b
Since:
2.3

operator_divide

public static int operator_divide(int a,
                                  char b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - a character.
Returns:
a/b
Since:
2.3

operator_modulo

public static int operator_modulo(int a,
                                  char b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - a character.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        char b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - a character.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              char b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - a character.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           char b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - a character.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 char b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - a character.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      char b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - a character.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         char b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - a character.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    char b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - a character.
Returns:
Math.pow(a, b)
Since:
2.3

operator_plus

public static int operator_plus(int a,
                                short b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - a short.
Returns:
a+b
Since:
2.3

operator_minus

public static int operator_minus(int a,
                                 short b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - a short.
Returns:
a-b
Since:
2.3

operator_multiply

public static int operator_multiply(int a,
                                    short b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - a short.
Returns:
a*b
Since:
2.3

operator_divide

public static int operator_divide(int a,
                                  short b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - a short.
Returns:
a/b
Since:
2.3

operator_modulo

public static int operator_modulo(int a,
                                  short b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - a short.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        short b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - a short.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              short b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - a short.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           short b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - a short.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 short b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - a short.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      short b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - a short.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         short b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - a short.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    short b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - a short.
Returns:
Math.pow(a, b)
Since:
2.3

operator_plus

public static int operator_plus(int a,
                                byte b)
The binary plus operator. This is the equivalent to the Java + operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a+b
Since:
2.3

operator_minus

public static int operator_minus(int a,
                                 byte b)
The binary minus operator. This is the equivalent to the Java - operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a-b
Since:
2.3

operator_multiply

public static int operator_multiply(int a,
                                    byte b)
The binary multiply operator. This is the equivalent to the Java * operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a*b
Since:
2.3

operator_divide

public static int operator_divide(int a,
                                  byte b)
The binary divide operator. This is the equivalent to the Java / operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a/b
Since:
2.3

operator_modulo

public static int operator_modulo(int a,
                                  byte b)
The binary modulo operator. This is the equivalent to the Java % operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a%b
Since:
2.3

operator_lessThan

public static boolean operator_lessThan(int a,
                                        byte b)
The binary lessThan operator. This is the equivalent to the Java < operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a<b
Since:
2.3

operator_lessEqualsThan

public static boolean operator_lessEqualsThan(int a,
                                              byte b)
The binary lessEqualsThan operator. This is the equivalent to the Java <= operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a<=b
Since:
2.3

operator_greaterThan

public static boolean operator_greaterThan(int a,
                                           byte b)
The binary greaterThan operator. This is the equivalent to the Java > operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a>b
Since:
2.3

operator_greaterEqualsThan

public static boolean operator_greaterEqualsThan(int a,
                                                 byte b)
The binary greaterEqualsThan operator. This is the equivalent to the Java >= operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a>=b
Since:
2.3

operator_equals

public static boolean operator_equals(int a,
                                      byte b)
The binary equals operator. This is the equivalent to the Java == operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a==b
Since:
2.3

operator_notEquals

public static boolean operator_notEquals(int a,
                                         byte b)
The binary notEquals operator. This is the equivalent to the Java != operator.

Parameters:
a - an integer.
b - a byte.
Returns:
a!=b
Since:
2.3

operator_power

public static double operator_power(int a,
                                    byte b)
The binary power operator. This is the equivalent to the Java's Math.pow() function.

Parameters:
a - an integer.
b - a byte.
Returns:
Math.pow(a, b)
Since:
2.3


Copyright © 2012. All Rights Reserved.