|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.pivot.impl.calc.Numbers
public class Numbers
Utilities of arithmetic operations.
| Nested Class Summary | |
|---|---|
static class |
Numbers.MixedTypedNumber
|
| Field Summary | |
|---|---|
static byte |
DOUBLE
Double type. |
static byte |
INTEGER
Integer type. |
static byte |
LONG
Long type. |
static byte |
NULL
null value. |
| Constructor Summary | |
|---|---|
Numbers()
|
|
| Method Summary | |
|---|---|
static java.lang.Number |
divide(java.lang.Number n,
int divisor)
Divide a Number by an int with automatic casting. |
static byte |
getTypeBound(java.lang.Number n)
Return the minimal variable type required to hold the number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte NULL
public static final byte INTEGER
public static final byte LONG
public static final byte DOUBLE
| Constructor Detail |
|---|
public Numbers()
| Method Detail |
|---|
public static byte getTypeBound(java.lang.Number n)
Numbers.NULL, Numbers.INTEGER,
Numbers.LONG, or Numbers.DOUBLE
public static java.lang.Number divide(java.lang.Number n,
int divisor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||