|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.tools.IntegerTools
public final class IntegerTools
This utility class provides simple integer based functionality to support MillScript.
| Method Summary | |
|---|---|
static java.lang.Integer |
add(int a,
java.lang.Object b)
Returns the Integer result of adding the two specified Integers together. |
static java.lang.Integer |
add(java.lang.Object a,
int b)
Returns the Integer result of adding the two specified Integers together. |
static java.lang.Integer |
add(java.lang.Object a,
java.lang.Object b)
Returns the Integer result of adding the two specified Integers together. |
static java.lang.Integer |
div(int a,
java.lang.Object b)
Returns the Integer result of dividing the first Integer by the second. |
static java.lang.Integer |
div(java.lang.Object a,
int b)
Returns the Integer result of dividing the first Integer by the second. |
static java.lang.Integer |
div(java.lang.Object a,
java.lang.Object b)
Returns the Integer result of dividing the first Integer by the second. |
static java.lang.Integer |
make(int n)
Returns an Integer for the specified int, using a shared Integer if available. |
static java.lang.Integer |
mod(int a,
java.lang.Object b)
Returns the Integer remainder left after dividing the first Integer by the second. |
static java.lang.Integer |
mod(java.lang.Object a,
int b)
Returns the Integer remainder left after dividing the first Integer by the second. |
static java.lang.Integer |
mod(java.lang.Object a,
java.lang.Object b)
Returns the Integer remainder left after dividing the first Integer by the second. |
static java.lang.Integer |
mul(int a,
java.lang.Object b)
Returns the Integer result of multiplying the two specified Integers together. |
static java.lang.Integer |
mul(java.lang.Object a,
int b)
Returns the Integer result of multiplying the two specified Integers together. |
static java.lang.Integer |
mul(java.lang.Object a,
java.lang.Object b)
Returns the Integer result of multiplying the two specified Integers together. |
static java.lang.Integer |
op(java.lang.String sym,
java.lang.Object x,
java.lang.Object y)
Performs a specified operation on the specified integers, using integer arithmetic. |
static java.lang.Integer |
sub(int a,
java.lang.Object b)
Returns the Integer result of subtracting the second Integer from the first. |
static java.lang.Integer |
sub(java.lang.Object a,
int b)
Returns the Integer result of subtracting the second Integer from the first. |
static java.lang.Integer |
sub(java.lang.Object a,
java.lang.Object b)
Returns the Integer result of subtracting the second Integer from the first. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Integer make(int n)
n - the int to make an Integer for
public static java.lang.Integer op(java.lang.String sym,
java.lang.Object x,
java.lang.Object y)
sym - the symbol for the arithmetic operation to performx - the first integery - the second integer
public static java.lang.Integer add(int a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer add(java.lang.Object a,
int b)
a - the first Integerb - the second Integer
public static java.lang.Integer add(java.lang.Object a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer sub(int a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer sub(java.lang.Object a,
int b)
a - the first Integerb - the second Integer
public static java.lang.Integer sub(java.lang.Object a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer mul(int a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer mul(java.lang.Object a,
int b)
a - the first Integerb - the second Integer
public static java.lang.Integer mul(java.lang.Object a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer div(int a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer div(java.lang.Object a,
int b)
a - the first Integerb - the second Integer
public static java.lang.Integer div(java.lang.Object a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer mod(int a,
java.lang.Object b)
a - the first Integerb - the second Integer
public static java.lang.Integer mod(java.lang.Object a,
int b)
a - the first Integerb - the second Integer
public static java.lang.Integer mod(java.lang.Object a,
java.lang.Object b)
a - the first Integerb - the second Integer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||