|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.xtext.xbase.lib.BigIntegerExtensions
public class BigIntegerExtensions
This is an extension library for big integral numbers.
| Constructor Summary | |
|---|---|
BigIntegerExtensions()
|
|
| Method Summary | |
|---|---|
static BigInteger |
operator_divide(BigInteger a,
BigInteger b)
The binary divide operator. |
static BigInteger |
operator_minus(BigInteger a)
The unary minus operator. |
static BigInteger |
operator_minus(BigInteger a,
BigInteger b)
The binary minus operator. |
static BigInteger |
operator_modulo(BigInteger a,
BigInteger b)
The binary modulo operator. |
static BigInteger |
operator_multiply(BigInteger a,
BigInteger b)
The binary times operator. |
static BigInteger |
operator_plus(BigInteger a,
BigInteger b)
The binary plus operator. |
static BigInteger |
operator_power(BigInteger a,
int exponent)
The power operator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BigIntegerExtensions()
| Method Detail |
|---|
public static BigInteger operator_minus(BigInteger a)
minus operator.
a - a BigInteger. May not be null.
-a
NullPointerException - if a is null.
public static BigInteger operator_plus(BigInteger a,
BigInteger b)
plus operator.
a - a BigInteger. May not be null.b - a BigInteger. May not be null.
a.add(b)
NullPointerException - if a or b is null.
public static BigInteger operator_minus(BigInteger a,
BigInteger b)
minus operator.
a - a BigInteger. May not be null.b - a BigInteger. May not be null.
a.subtract(b)
NullPointerException - if a or b is null.
public static BigInteger operator_power(BigInteger a,
int exponent)
power operator.
a - a BigInteger. May not be null.exponent - the exponent.
a.pow(b)
NullPointerException - if a null.
public static BigInteger operator_multiply(BigInteger a,
BigInteger b)
times operator.
a - a BigInteger. May not be null.b - a BigInteger. May not be null.
a.multiply(b)
NullPointerException - if a or b is null.
public static BigInteger operator_divide(BigInteger a,
BigInteger b)
divide operator.
a - a BigInteger. May not be null.b - a BigInteger. May not be null.
a.divide(b)
NullPointerException - if a or b is null.
public static BigInteger operator_modulo(BigInteger a,
BigInteger b)
modulo operator.
a - a BigInteger. May not be null.b - a BigInteger. May not be null.
a.mod(b)
NullPointerException - if a or b is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||