Class IntegerExtensions

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

@GwtCompatible 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 Details

    • IntegerExtensions

      public IntegerExtensions()
  • Method Details

    • operator_upTo

      @Pure 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
    • operator_doubleDotLessThan

      @Pure public static ExclusiveRange operator_doubleDotLessThan(int a, int b)
      The ..< operator yields an ExclusiveRange that increments from a to b (exclusive).
      Parameters:
      a - the start of the range.
      b - the end of the range (exclusive).
      Returns:
      an incrementing ExclusiveRange. Never null.
      Since:
      2.4
    • operator_greaterThanDoubleDot

      @Pure public static ExclusiveRange operator_greaterThanDoubleDot(int a, int b)
      The >.. operator yields an ExclusiveRange that decrements from a (exclusive) down to b.
      Parameters:
      a - the start of the range (exclusive).
      b - the end of the range.
      Returns:
      a decrementing ExclusiveRange. Never null.
      Since:
      2.4
    • bitwiseOr

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure @Deprecated public static int shiftLeft(int a, int distance)
      Deprecated.
      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

      @Pure 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

      @Pure @Deprecated public static int shiftRight(int a, int distance)
      Deprecated.
      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

      @Pure 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

      @Pure @Deprecated public static int shiftRightUnsigned(int a, int distance)
      Deprecated.
      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

      @Pure 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

      @Pure public static int operator_minus(int i)
      The unary minus operator. This is the equivalent to the Java's - function.
      Parameters:
      i - an integer.
      Returns:
      -i
      Since:
      2.3
    • operator_minusMinus

      public static int operator_minusMinus(int i)
      The postfix decrement operator. This is the equivalent to the Java's -- postfix function.
      Parameters:
      i - an integer.
      Returns:
      i--
      Since:
      2.6
    • operator_minusMinus

      public static Integer operator_minusMinus(Integer i)
      The postfix decrement operator. This is the equivalent to the Java's -- postfix function.
      Parameters:
      i - an integer.
      Returns:
      i--
      Since:
      2.6
    • operator_plusPlus

      public static int operator_plusPlus(int i)
      The postfix increment operator. This is the equivalent to the Java's ++ postfix function.
      Parameters:
      i - an integer.
      Returns:
      i++
      Since:
      2.6
    • operator_plusPlus

      public static Integer operator_plusPlus(Integer i)
      The postfix increment operator. This is the equivalent to the Java's ++ postfix function.
      Parameters:
      i - an integer.
      Returns:
      i++
      Since:
      2.6
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, double b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - a double.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, double b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - a double.
      Returns:
      a != b
      Since:
      2.4
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, float b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - a float.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, float b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - a float.
      Returns:
      a != b
      Since:
      2.4
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, long b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - a long.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, long b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - a long.
      Returns:
      a != b
      Since:
      2.4
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, int b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - an integer.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, int b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - an integer.
      Returns:
      a != b
      Since:
      2.4
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, char b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - a character.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, char b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - a character.
      Returns:
      a != b
      Since:
      2.4
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, short b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - a short.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, short b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - a short.
      Returns:
      a != b
      Since:
      2.4
    • operator_plus

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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

      @Pure 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
    • operator_tripleEquals

      @Pure public static boolean operator_tripleEquals(int a, byte b)
      The identity equals operator. This is the equivalent to Java's == operator.
      Parameters:
      a - an integer.
      b - a byte.
      Returns:
      a == b
      Since:
      2.4
    • operator_tripleNotEquals

      @Pure public static boolean operator_tripleNotEquals(int a, byte b)
      The identity not equals operator. This is the equivalent to Java's != operator.
      Parameters:
      a - an integer.
      b - a byte.
      Returns:
      a != b
      Since:
      2.4