Package org.eclipse.xtext.xbase.lib
Class IntegerExtensions
- java.lang.Object
-
- org.eclipse.xtext.xbase.lib.IntegerExtensions
-
@GwtCompatible public class IntegerExtensions extends java.lang.ObjectThis is an extension library forintegral numbers, e.g.intorInteger.- Since:
- 2.3
-
-
Constructor Summary
Constructors Constructor Description IntegerExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intbitwiseAnd(int a, int b)The bitwiseandoperation.static intbitwiseNot(int a)The bitwise complement operation.static intbitwiseOr(int a, int b)The bitwise inclusiveoroperation.static intbitwiseXor(int a, int b)The bitwise exclusiveoroperation.static intoperator_divide(int a, byte b)The binarydivideoperator.static intoperator_divide(int a, char b)The binarydivideoperator.static doubleoperator_divide(int a, double b)The binarydivideoperator.static floatoperator_divide(int a, float b)The binarydivideoperator.static intoperator_divide(int a, int b)The binarydivideoperator.static longoperator_divide(int a, long b)The binarydivideoperator.static intoperator_divide(int a, short b)The binarydivideoperator.static ExclusiveRangeoperator_doubleDotLessThan(int a, int b)The..<operator yields anExclusiveRangethat increments from a to b (exclusive).static intoperator_doubleGreaterThan(int a, int distance)The binarysigned right siftoperator.static intoperator_doubleLessThan(int a, int distance)The binarysigned left shiftoperator.static booleanoperator_equals(int a, byte b)The binaryequalsoperator.static booleanoperator_equals(int a, char b)The binaryequalsoperator.static booleanoperator_equals(int a, double b)The binaryequalsoperator.static booleanoperator_equals(int a, float b)The binaryequalsoperator.static booleanoperator_equals(int a, int b)The binaryequalsoperator.static booleanoperator_equals(int a, long b)The binaryequalsoperator.static booleanoperator_equals(int a, short b)The binaryequalsoperator.static booleanoperator_greaterEqualsThan(int a, byte b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterEqualsThan(int a, char b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterEqualsThan(int a, double b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterEqualsThan(int a, float b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterEqualsThan(int a, int b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterEqualsThan(int a, long b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterEqualsThan(int a, short b)The binarygreaterEqualsThanoperator.static booleanoperator_greaterThan(int a, byte b)The binarygreaterThanoperator.static booleanoperator_greaterThan(int a, char b)The binarygreaterThanoperator.static booleanoperator_greaterThan(int a, double b)The binarygreaterThanoperator.static booleanoperator_greaterThan(int a, float b)The binarygreaterThanoperator.static booleanoperator_greaterThan(int a, int b)The binarygreaterThanoperator.static booleanoperator_greaterThan(int a, long b)The binarygreaterThanoperator.static booleanoperator_greaterThan(int a, short b)The binarygreaterThanoperator.static ExclusiveRangeoperator_greaterThanDoubleDot(int a, int b)The>..operator yields anExclusiveRangethat decrements from a (exclusive) down to b.static booleanoperator_lessEqualsThan(int a, byte b)The binarylessEqualsThanoperator.static booleanoperator_lessEqualsThan(int a, char b)The binarylessEqualsThanoperator.static booleanoperator_lessEqualsThan(int a, double b)The binarylessEqualsThanoperator.static booleanoperator_lessEqualsThan(int a, float b)The binarylessEqualsThanoperator.static booleanoperator_lessEqualsThan(int a, int b)The binarylessEqualsThanoperator.static booleanoperator_lessEqualsThan(int a, long b)The binarylessEqualsThanoperator.static booleanoperator_lessEqualsThan(int a, short b)The binarylessEqualsThanoperator.static booleanoperator_lessThan(int a, byte b)The binarylessThanoperator.static booleanoperator_lessThan(int a, char b)The binarylessThanoperator.static booleanoperator_lessThan(int a, double b)The binarylessThanoperator.static booleanoperator_lessThan(int a, float b)The binarylessThanoperator.static booleanoperator_lessThan(int a, int b)The binarylessThanoperator.static booleanoperator_lessThan(int a, long b)The binarylessThanoperator.static booleanoperator_lessThan(int a, short b)The binarylessThanoperator.static intoperator_minus(int i)The unaryminusoperator.static intoperator_minus(int a, byte b)The binaryminusoperator.static intoperator_minus(int a, char b)The binaryminusoperator.static doubleoperator_minus(int a, double b)The binaryminusoperator.static floatoperator_minus(int a, float b)The binaryminusoperator.static intoperator_minus(int a, int b)The binaryminusoperator.static longoperator_minus(int a, long b)The binaryminusoperator.static intoperator_minus(int a, short b)The binaryminusoperator.static intoperator_minusMinus(int i)The postfixdecrementoperator.static java.lang.Integeroperator_minusMinus(java.lang.Integer i)The postfixdecrementoperator.static intoperator_modulo(int a, byte b)The binarymodulooperator.static intoperator_modulo(int a, char b)The binarymodulooperator.static doubleoperator_modulo(int a, double b)The binarymodulooperator.static floatoperator_modulo(int a, float b)The binarymodulooperator.static intoperator_modulo(int a, int b)The binarymodulooperator.static longoperator_modulo(int a, long b)The binarymodulooperator.static intoperator_modulo(int a, short b)The binarymodulooperator.static intoperator_multiply(int a, byte b)The binarymultiplyoperator.static intoperator_multiply(int a, char b)The binarymultiplyoperator.static doubleoperator_multiply(int a, double b)The binarymultiplyoperator.static floatoperator_multiply(int a, float b)The binarymultiplyoperator.static intoperator_multiply(int a, int b)The binarymultiplyoperator.static longoperator_multiply(int a, long b)The binarymultiplyoperator.static intoperator_multiply(int a, short b)The binarymultiplyoperator.static booleanoperator_notEquals(int a, byte b)The binarynotEqualsoperator.static booleanoperator_notEquals(int a, char b)The binarynotEqualsoperator.static booleanoperator_notEquals(int a, double b)The binarynotEqualsoperator.static booleanoperator_notEquals(int a, float b)The binarynotEqualsoperator.static booleanoperator_notEquals(int a, int b)The binarynotEqualsoperator.static booleanoperator_notEquals(int a, long b)The binarynotEqualsoperator.static booleanoperator_notEquals(int a, short b)The binarynotEqualsoperator.static intoperator_plus(int a, byte b)The binaryplusoperator.static intoperator_plus(int a, char b)The binaryplusoperator.static doubleoperator_plus(int a, double b)The binaryplusoperator.static floatoperator_plus(int a, float b)The binaryplusoperator.static intoperator_plus(int a, int b)The binaryplusoperator.static longoperator_plus(int a, long b)The binaryplusoperator.static intoperator_plus(int a, short b)The binaryplusoperator.static intoperator_plusPlus(int i)The postfixincrementoperator.static java.lang.Integeroperator_plusPlus(java.lang.Integer i)The postfixincrementoperator.static doubleoperator_power(int a, byte b)The binarypoweroperator.static doubleoperator_power(int a, char b)The binarypoweroperator.static doubleoperator_power(int a, double b)The binarypoweroperator.static doubleoperator_power(int a, float b)The binarypoweroperator.static doubleoperator_power(int a, int b)The binarypoweroperator.static doubleoperator_power(int a, long b)The binarypoweroperator.static doubleoperator_power(int a, short b)The binarypoweroperator.static booleanoperator_tripleEquals(int a, byte b)Theidentity equalsoperator.static booleanoperator_tripleEquals(int a, char b)Theidentity equalsoperator.static booleanoperator_tripleEquals(int a, double b)Theidentity equalsoperator.static booleanoperator_tripleEquals(int a, float b)Theidentity equalsoperator.static booleanoperator_tripleEquals(int a, int b)Theidentity equalsoperator.static booleanoperator_tripleEquals(int a, long b)Theidentity equalsoperator.static booleanoperator_tripleEquals(int a, short b)Theidentity equalsoperator.static intoperator_tripleGreaterThan(int a, int distance)The binaryunsigned right shiftoperator.static booleanoperator_tripleNotEquals(int a, byte b)Theidentity not equalsoperator.static booleanoperator_tripleNotEquals(int a, char b)Theidentity not equalsoperator.static booleanoperator_tripleNotEquals(int a, double b)Theidentity not equalsoperator.static booleanoperator_tripleNotEquals(int a, float b)Theidentity not equalsoperator.static booleanoperator_tripleNotEquals(int a, int b)Theidentity not equalsoperator.static booleanoperator_tripleNotEquals(int a, long b)Theidentity not equalsoperator.static booleanoperator_tripleNotEquals(int a, short b)Theidentity not equalsoperator.static IntegerRangeoperator_upTo(int a, int b)The..operator yields anIntegerRange.static intshiftLeft(int a, int distance)Deprecated.useoperator_doubleLessThan(int, int)insteadstatic intshiftRight(int a, int distance)Deprecated.useoperator_doubleGreaterThan(int, int)insteadstatic intshiftRightUnsigned(int a, int distance)Deprecated.useoperator_tripleGreaterThan(int, int)instead
-
-
-
Method Detail
-
operator_upTo
@Pure public static IntegerRange operator_upTo(int a, int b)
The..operator yields anIntegerRange.- Parameters:
a- the start of the range.b- the end of the range.- Returns:
- an
IntegerRange. Nevernull. - Since:
- 2.3
-
operator_doubleDotLessThan
@Pure public static ExclusiveRange operator_doubleDotLessThan(int a, int b)
The..<operator yields anExclusiveRangethat increments from a to b (exclusive).- Parameters:
a- the start of the range.b- the end of the range (exclusive).- Returns:
- an incrementing
ExclusiveRange. Nevernull. - Since:
- 2.4
-
operator_greaterThanDoubleDot
@Pure public static ExclusiveRange operator_greaterThanDoubleDot(int a, int b)
The>..operator yields anExclusiveRangethat 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. Nevernull. - Since:
- 2.4
-
bitwiseOr
@Pure public static int bitwiseOr(int a, int b)
The bitwise inclusiveoroperation. 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 exclusiveoroperation. 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 bitwiseandoperation. 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.useoperator_doubleLessThan(int, int)insteadThe binarysigned left shiftoperator. 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 binarysigned left shiftoperator. 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.useoperator_doubleGreaterThan(int, int)insteadThe binarysigned right siftoperator. 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 binarysigned right siftoperator. 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.useoperator_tripleGreaterThan(int, int)insteadThe binaryunsigned right shiftoperator. 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 binaryunsigned right shiftoperator. 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 unaryminusoperator. 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 postfixdecrementoperator. This is the equivalent to the Java's--postfix function.- Parameters:
i- an integer.- Returns:
i--- Since:
- 2.6
-
operator_minusMinus
public static java.lang.Integer operator_minusMinus(java.lang.Integer i)
The postfixdecrementoperator. 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 postfixincrementoperator. This is the equivalent to the Java's++postfix function.- Parameters:
i- an integer.- Returns:
i++- Since:
- 2.6
-
operator_plusPlus
public static java.lang.Integer operator_plusPlus(java.lang.Integer i)
The postfixincrementoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. 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 binaryplusoperator. 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 binaryminusoperator. 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 binarymultiplyoperator. 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 binarydivideoperator. 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 binarymodulooperator. 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 binarylessThanoperator. 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 binarylessEqualsThanoperator. 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 binarygreaterThanoperator. 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 binarygreaterEqualsThanoperator. 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 binaryequalsoperator. 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 binarynotEqualsoperator. 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 binarypoweroperator. This is the equivalent to the Java'sMath.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)
Theidentity equalsoperator. 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)
Theidentity not equalsoperator. This is the equivalent to Java's!=operator.- Parameters:
a- an integer.b- a byte.- Returns:
a != b- Since:
- 2.4
-
-