|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
org.eclipse.soda.dk.core.LargeInteger
public class LargeInteger
| Constructor Summary | |
|---|---|
LargeInteger()
Constructs an instance of this class. |
|
LargeInteger(byte[] bytes)
Constructs an instance of this class from the specified bytes parameter. |
|
LargeInteger(java.lang.String string)
Constructs an instance of this class from the specified string parameter. |
|
| Method Summary | |
|---|---|
static byte[] |
addDigit(byte[] bytes,
int digit)
Add digit with the specified bytes and digit parameters and return the byte[] result. |
static byte[] |
complementBytes(byte[] bytes)
Complement with the specified bytes parameter and return the byte[] result. |
double |
doubleValue()
Double value and return the double result. |
float |
floatValue()
Float value and return the float result. |
byte[] |
getBytes()
Gets the bytes (byte[]) value. |
int |
intValue()
Int value and return the int result. |
static byte[] |
largeNumberBytes(java.lang.String number)
Large number with the specified number parameter and return the byte[] result. |
static java.lang.String |
largeNumberString(byte[] bytes)
Large number string with the specified bytes parameter and return the String result. |
long |
longValue()
Long value and return the long result. |
byte[] |
multiplyByTen(byte[] bytes)
Multiply by ten with the specified bytes parameter and return the byte[] result. |
static byte[] |
reduceBytes(byte[] bytes,
boolean negative)
Reduce bytes with the specified bytes and negative parameters and return the byte[] result. |
void |
setBytes(byte[] bytes)
Sets the bytes value. |
java.lang.String |
toString()
Returns the string value. |
static java.lang.String |
unsignedLargeNumberString(byte[] bytes)
Unsigned large number string with the specified bytes parameter and return the String result. |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LargeInteger()
LargeInteger(byte[]),
LargeInteger(String)public LargeInteger(byte[] bytes)
bytes - The bytes (byte[]) parameter.LargeInteger(),
LargeInteger(String)public LargeInteger(java.lang.String string)
string - The string (String) parameter.LargeInteger(),
LargeInteger(byte[])| Method Detail |
|---|
public static final byte[] addDigit(byte[] bytes,
int digit)
bytes - The bytes (byte[]) parameter.digit - The digit (int) parameter.
byte[]) value.public static final byte[] complementBytes(byte[] bytes)
bytes - The bytes (byte[]) parameter.
byte[]) value.largeNumberBytes(String),
reduceBytes(byte[],boolean),
getBytes(),
setBytes(byte[])public static final byte[] largeNumberBytes(java.lang.String number)
number - The number (String) parameter.
byte[]) value.public static final java.lang.String largeNumberString(byte[] bytes)
bytes - The bytes (byte[]) parameter.
String) value.unsignedLargeNumberString(byte[])
public static final byte[] reduceBytes(byte[] bytes,
boolean negative)
bytes - The bytes (byte[]) parameter.negative - The negative (boolean) parameter.
byte[]) value.complementBytes(byte[]),
largeNumberBytes(String),
getBytes(),
setBytes(byte[])public static final java.lang.String unsignedLargeNumberString(byte[] bytes)
bytes - The bytes (byte[]) parameter.
String) value.public double doubleValue()
doubleValue in class java.lang.Numberdouble) value.floatValue(),
intValue(),
longValue()public float floatValue()
floatValue in class java.lang.Numberfloat) value.doubleValue(),
intValue(),
longValue()public byte[] getBytes()
byte[]) value.complementBytes(byte[]),
largeNumberBytes(String),
reduceBytes(byte[],boolean),
setBytes(byte[])public int intValue()
intValue in class java.lang.Numberint) value.doubleValue(),
floatValue(),
longValue()public long longValue()
longValue in class java.lang.Numberlong) value.doubleValue(),
floatValue(),
intValue()public byte[] multiplyByTen(byte[] bytes)
bytes - The bytes (byte[]) parameter.
byte[]) value.public void setBytes(byte[] bytes)
bytes - The bytes (byte[]) parameter.complementBytes(byte[]),
largeNumberBytes(String),
reduceBytes(byte[],boolean),
getBytes()public java.lang.String toString()
toString in class java.lang.ObjectString) value.largeNumberString(byte[]),
unsignedLargeNumberString(byte[])
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||