Package org.eclipse.xtext.xbase.lib
Class IntegerExtensions
- java.lang.Object
-
- org.eclipse.xtext.xbase.lib.IntegerExtensions
-
@GwtCompatible public class IntegerExtensions extends java.lang.Object
This is an extension library forintegral numbers
, e.g.int
orInteger
.- 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 int
bitwiseAnd(int a, int b)
The bitwiseand
operation.static int
bitwiseNot(int a)
The bitwise complement operation.static int
bitwiseOr(int a, int b)
The bitwise inclusiveor
operation.static int
bitwiseXor(int a, int b)
The bitwise exclusiveor
operation.static int
operator_divide(int a, byte b)
The binarydivide
operator.static int
operator_divide(int a, char b)
The binarydivide
operator.static double
operator_divide(int a, double b)
The binarydivide
operator.static float
operator_divide(int a, float b)
The binarydivide
operator.static int
operator_divide(int a, int b)
The binarydivide
operator.static long
operator_divide(int a, long b)
The binarydivide
operator.static int
operator_divide(int a, short b)
The binarydivide
operator.static ExclusiveRange
operator_doubleDotLessThan(int a, int b)
The..<
operator yields anExclusiveRange
that increments from a to b (exclusive).static int
operator_doubleGreaterThan(int a, int distance)
The binarysigned right sift
operator.static int
operator_doubleLessThan(int a, int distance)
The binarysigned left shift
operator.static boolean
operator_equals(int a, byte b)
The binaryequals
operator.static boolean
operator_equals(int a, char b)
The binaryequals
operator.static boolean
operator_equals(int a, double b)
The binaryequals
operator.static boolean
operator_equals(int a, float b)
The binaryequals
operator.static boolean
operator_equals(int a, int b)
The binaryequals
operator.static boolean
operator_equals(int a, long b)
The binaryequals
operator.static boolean
operator_equals(int a, short b)
The binaryequals
operator.static boolean
operator_greaterEqualsThan(int a, byte b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterEqualsThan(int a, char b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterEqualsThan(int a, double b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterEqualsThan(int a, float b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterEqualsThan(int a, int b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterEqualsThan(int a, long b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterEqualsThan(int a, short b)
The binarygreaterEqualsThan
operator.static boolean
operator_greaterThan(int a, byte b)
The binarygreaterThan
operator.static boolean
operator_greaterThan(int a, char b)
The binarygreaterThan
operator.static boolean
operator_greaterThan(int a, double b)
The binarygreaterThan
operator.static boolean
operator_greaterThan(int a, float b)
The binarygreaterThan
operator.static boolean
operator_greaterThan(int a, int b)
The binarygreaterThan
operator.static boolean
operator_greaterThan(int a, long b)
The binarygreaterThan
operator.static boolean
operator_greaterThan(int a, short b)
The binarygreaterThan
operator.static ExclusiveRange
operator_greaterThanDoubleDot(int a, int b)
The>..
operator yields anExclusiveRange
that decrements from a (exclusive) down to b.static boolean
operator_lessEqualsThan(int a, byte b)
The binarylessEqualsThan
operator.static boolean
operator_lessEqualsThan(int a, char b)
The binarylessEqualsThan
operator.static boolean
operator_lessEqualsThan(int a, double b)
The binarylessEqualsThan
operator.static boolean
operator_lessEqualsThan(int a, float b)
The binarylessEqualsThan
operator.static boolean
operator_lessEqualsThan(int a, int b)
The binarylessEqualsThan
operator.static boolean
operator_lessEqualsThan(int a, long b)
The binarylessEqualsThan
operator.static boolean
operator_lessEqualsThan(int a, short b)
The binarylessEqualsThan
operator.static boolean
operator_lessThan(int a, byte b)
The binarylessThan
operator.static boolean
operator_lessThan(int a, char b)
The binarylessThan
operator.static boolean
operator_lessThan(int a, double b)
The binarylessThan
operator.static boolean
operator_lessThan(int a, float b)
The binarylessThan
operator.static boolean
operator_lessThan(int a, int b)
The binarylessThan
operator.static boolean
operator_lessThan(int a, long b)
The binarylessThan
operator.static boolean
operator_lessThan(int a, short b)
The binarylessThan
operator.static int
operator_minus(int i)
The unaryminus
operator.static int
operator_minus(int a, byte b)
The binaryminus
operator.static int
operator_minus(int a, char b)
The binaryminus
operator.static double
operator_minus(int a, double b)
The binaryminus
operator.static float
operator_minus(int a, float b)
The binaryminus
operator.static int
operator_minus(int a, int b)
The binaryminus
operator.static long
operator_minus(int a, long b)
The binaryminus
operator.static int
operator_minus(int a, short b)
The binaryminus
operator.static int
operator_minusMinus(int i)
The postfixdecrement
operator.static java.lang.Integer
operator_minusMinus(java.lang.Integer i)
The postfixdecrement
operator.static int
operator_modulo(int a, byte b)
The binarymodulo
operator.static int
operator_modulo(int a, char b)
The binarymodulo
operator.static double
operator_modulo(int a, double b)
The binarymodulo
operator.static float
operator_modulo(int a, float b)
The binarymodulo
operator.static int
operator_modulo(int a, int b)
The binarymodulo
operator.static long
operator_modulo(int a, long b)
The binarymodulo
operator.static int
operator_modulo(int a, short b)
The binarymodulo
operator.static int
operator_multiply(int a, byte b)
The binarymultiply
operator.static int
operator_multiply(int a, char b)
The binarymultiply
operator.static double
operator_multiply(int a, double b)
The binarymultiply
operator.static float
operator_multiply(int a, float b)
The binarymultiply
operator.static int
operator_multiply(int a, int b)
The binarymultiply
operator.static long
operator_multiply(int a, long b)
The binarymultiply
operator.static int
operator_multiply(int a, short b)
The binarymultiply
operator.static boolean
operator_notEquals(int a, byte b)
The binarynotEquals
operator.static boolean
operator_notEquals(int a, char b)
The binarynotEquals
operator.static boolean
operator_notEquals(int a, double b)
The binarynotEquals
operator.static boolean
operator_notEquals(int a, float b)
The binarynotEquals
operator.static boolean
operator_notEquals(int a, int b)
The binarynotEquals
operator.static boolean
operator_notEquals(int a, long b)
The binarynotEquals
operator.static boolean
operator_notEquals(int a, short b)
The binarynotEquals
operator.static int
operator_plus(int a, byte b)
The binaryplus
operator.static int
operator_plus(int a, char b)
The binaryplus
operator.static double
operator_plus(int a, double b)
The binaryplus
operator.static float
operator_plus(int a, float b)
The binaryplus
operator.static int
operator_plus(int a, int b)
The binaryplus
operator.static long
operator_plus(int a, long b)
The binaryplus
operator.static int
operator_plus(int a, short b)
The binaryplus
operator.static int
operator_plusPlus(int i)
The postfixincrement
operator.static java.lang.Integer
operator_plusPlus(java.lang.Integer i)
The postfixincrement
operator.static double
operator_power(int a, byte b)
The binarypower
operator.static double
operator_power(int a, char b)
The binarypower
operator.static double
operator_power(int a, double b)
The binarypower
operator.static double
operator_power(int a, float b)
The binarypower
operator.static double
operator_power(int a, int b)
The binarypower
operator.static double
operator_power(int a, long b)
The binarypower
operator.static double
operator_power(int a, short b)
The binarypower
operator.static boolean
operator_tripleEquals(int a, byte b)
Theidentity equals
operator.static boolean
operator_tripleEquals(int a, char b)
Theidentity equals
operator.static boolean
operator_tripleEquals(int a, double b)
Theidentity equals
operator.static boolean
operator_tripleEquals(int a, float b)
Theidentity equals
operator.static boolean
operator_tripleEquals(int a, int b)
Theidentity equals
operator.static boolean
operator_tripleEquals(int a, long b)
Theidentity equals
operator.static boolean
operator_tripleEquals(int a, short b)
Theidentity equals
operator.static int
operator_tripleGreaterThan(int a, int distance)
The binaryunsigned right shift
operator.static boolean
operator_tripleNotEquals(int a, byte b)
Theidentity not equals
operator.static boolean
operator_tripleNotEquals(int a, char b)
Theidentity not equals
operator.static boolean
operator_tripleNotEquals(int a, double b)
Theidentity not equals
operator.static boolean
operator_tripleNotEquals(int a, float b)
Theidentity not equals
operator.static boolean
operator_tripleNotEquals(int a, int b)
Theidentity not equals
operator.static boolean
operator_tripleNotEquals(int a, long b)
Theidentity not equals
operator.static boolean
operator_tripleNotEquals(int a, short b)
Theidentity not equals
operator.static IntegerRange
operator_upTo(int a, int b)
The..
operator yields anIntegerRange
.static int
shiftLeft(int a, int distance)
Deprecated.useoperator_doubleLessThan(int, int)
insteadstatic int
shiftRight(int a, int distance)
Deprecated.useoperator_doubleGreaterThan(int, int)
insteadstatic int
shiftRightUnsigned(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 anExclusiveRange
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
. Nevernull
. - Since:
- 2.4
-
operator_greaterThanDoubleDot
@Pure public static ExclusiveRange operator_greaterThanDoubleDot(int a, int b)
The>..
operator yields anExclusiveRange
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
. Nevernull
. - Since:
- 2.4
-
bitwiseOr
@Pure public static int bitwiseOr(int a, int b)
The bitwise inclusiveor
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 exclusiveor
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 bitwiseand
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.useoperator_doubleLessThan(int, int)
insteadThe binarysigned 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 binarysigned 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.useoperator_doubleGreaterThan(int, int)
insteadThe binarysigned 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 binarysigned 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.useoperator_tripleGreaterThan(int, int)
insteadThe binaryunsigned 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 binaryunsigned 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 unaryminus
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 postfixdecrement
operator. 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 postfixdecrement
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 postfixincrement
operator. 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 postfixincrement
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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity 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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity 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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity 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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity 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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity 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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity 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 binaryplus
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 binaryminus
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 binarymultiply
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 binarydivide
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 binarymodulo
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 binarylessThan
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 binarylessEqualsThan
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 binarygreaterThan
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 binarygreaterEqualsThan
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 binaryequals
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 binarynotEquals
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 binarypower
operator. 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 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)
Theidentity not equals
operator. This is the equivalent to Java's!=
operator.- Parameters:
a
- an integer.b
- a byte.- Returns:
a != b
- Since:
- 2.4
-
-