Package org.eclipse.xtext.xbase.lib
Class BigIntegerExtensions
- java.lang.Object
-
- org.eclipse.xtext.xbase.lib.BigIntegerExtensions
-
@GwtCompatible public class BigIntegerExtensions extends java.lang.ObjectThis is an extension library forbig integral numbers.
-
-
Constructor Summary
Constructors Constructor Description BigIntegerExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.math.BigIntegeroperator_divide(java.math.BigInteger a, java.math.BigInteger b)The binarydivideoperator.static java.math.BigIntegeroperator_minus(java.math.BigInteger a)The unaryminusoperator.static java.math.BigIntegeroperator_minus(java.math.BigInteger a, java.math.BigInteger b)The binaryminusoperator.static java.math.BigIntegeroperator_modulo(java.math.BigInteger a, java.math.BigInteger b)The binarymodulooperator.static java.math.BigIntegeroperator_multiply(java.math.BigInteger a, java.math.BigInteger b)The binarytimesoperator.static java.math.BigIntegeroperator_plus(java.math.BigInteger a, java.math.BigInteger b)The binaryplusoperator.static java.math.BigIntegeroperator_power(java.math.BigInteger a, int exponent)Thepoweroperator.
-
-
-
Method Detail
-
operator_minus
@Pure public static java.math.BigInteger operator_minus(java.math.BigInteger a)
The unaryminusoperator.- Parameters:
a- a BigInteger. May not benull.- Returns:
-a- Throws:
java.lang.NullPointerException- ifaisnull.
-
operator_plus
@Pure public static java.math.BigInteger operator_plus(java.math.BigInteger a, java.math.BigInteger b)
The binaryplusoperator.- Parameters:
a- a BigInteger. May not benull.b- a BigInteger. May not benull.- Returns:
a.add(b)- Throws:
java.lang.NullPointerException- ifaorbisnull.
-
operator_minus
@Pure public static java.math.BigInteger operator_minus(java.math.BigInteger a, java.math.BigInteger b)
The binaryminusoperator.- Parameters:
a- a BigInteger. May not benull.b- a BigInteger. May not benull.- Returns:
a.subtract(b)- Throws:
java.lang.NullPointerException- ifaorbisnull.
-
operator_power
@Pure public static java.math.BigInteger operator_power(java.math.BigInteger a, int exponent)
Thepoweroperator.- Parameters:
a- a BigInteger. May not benull.exponent- the exponent.- Returns:
a.pow(b)- Throws:
java.lang.NullPointerException- ifanull.
-
operator_multiply
@Pure public static java.math.BigInteger operator_multiply(java.math.BigInteger a, java.math.BigInteger b)
The binarytimesoperator.- Parameters:
a- a BigInteger. May not benull.b- a BigInteger. May not benull.- Returns:
a.multiply(b)- Throws:
java.lang.NullPointerException- ifaorbisnull.
-
operator_divide
@Pure public static java.math.BigInteger operator_divide(java.math.BigInteger a, java.math.BigInteger b)
The binarydivideoperator.- Parameters:
a- a BigInteger. May not benull.b- a BigInteger. May not benull.- Returns:
a.divide(b)- Throws:
java.lang.NullPointerException- ifaorbisnull.
-
operator_modulo
@Pure public static java.math.BigInteger operator_modulo(java.math.BigInteger a, java.math.BigInteger b)
The binarymodulooperator.- Parameters:
a- a BigInteger. May not benull.b- a BigInteger. May not benull.- Returns:
a.mod(b)- Throws:
java.lang.NullPointerException- ifaorbisnull.
-
-