|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.value.PrimValue
|
+--org.abora.white.value.PrimIntValue
|
+--org.abora.white.value.IntegerValue
| Constructor Summary | |
protected |
IntegerValue(java.math.BigInteger value)
Construct a new instance with value. |
protected |
IntegerValue(long value)
Construct a new instance with value. |
| Method Summary | |
IntegerValue |
abs()
|
int |
actualHashForEqual()
Defined by subclasses to produce the value returned by hashForEqual. |
boolean |
asBooleanVar()
The value as a BooleanVar. |
short |
asInt16()
The value as a 16 bit signed integer |
int |
asInt32()
The value as a 32 bit signed integer |
long |
asInt64()
The value as a 64 bit signed integer |
byte |
asInt8()
The value as a 8 bit signed integer |
char |
asUInt16()
Return the value as a 16 bit unsigned integer. |
long |
asUInt32()
Return the value as a 32 bit unsigned integer. |
short |
asUInt8()
Return the value as an 8 bit unsigned integer. |
int |
bitCount()
What precision is it, in terms of the number of bits used to represent it. |
IntegerValue |
bitwiseAnd(IntegerValue another)
Return the the first number bitwise and'd with the second. |
IntegerValue |
bitwiseOr(IntegerValue another)
Return the the first number bitwise or'd with the second. |
IntegerValue |
bitwiseXor(IntegerValue another)
Return the the first number bitwise xor'd with the second. |
int |
compareTo(java.lang.Object other)
|
IntegerValue |
dividedBy(IntegerValue another)
Integer divide the two numbers and return the result. |
IntegerPos |
integer()
|
int |
intValue()
|
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
isGE(IntegerValue another)
Return true if the first number is greater than or equal to the second number. |
boolean |
isGT(IntegerValue another)
Return true if the first number is greater than the second number. |
boolean |
isLE(IntegerValue another)
Return true if the first number is less than or equal to the second number. |
boolean |
isLT(IntegerValue another)
Return true if the first number is less than the second number. |
boolean |
isZero()
|
IntegerValue |
leftShift(IntegerValue another)
Return the the first number shifted to the left by the second amount. |
long |
longValue()
|
static IntegerValue |
make(java.math.BigInteger value)
|
static IntegerValue |
make(long value)
|
IntegerValue |
maximum(IntegerValue another)
Return the largest of the two numbers. |
IntegerValue |
minimum(IntegerValue another)
Return the smallest of the two numbers. |
IntegerValue |
minus(IntegerValue another)
Return the difference two numbers. |
IntegerValue |
mod(IntegerValue another)
Return the the first number modulo the second. |
IntegerValue |
negated()
|
static IntegerValue |
one()
|
IntegerValue |
plus(IntegerValue another)
Return the sum of two numbers. |
void |
printContentsOn(java.io.PrintWriter oo)
Subclasses override this method to customize their printing. |
IntegerValue |
times(IntegerValue another)
Multiply the two numbers and return the result. |
java.math.BigInteger |
toBigInteger()
|
java.lang.String |
toString()
|
static IntegerValue |
zero()
|
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printOn, sendSelfTo |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected IntegerValue(long value)
value - protected IntegerValue(java.math.BigInteger value)
value - | Method Detail |
public static IntegerValue zero()
public static IntegerValue one()
public static IntegerValue make(long value)
public static IntegerValue make(java.math.BigInteger value)
public boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic boolean isGE(IntegerValue another)
public boolean isGT(IntegerValue another)
public boolean isLT(IntegerValue another)
public boolean isLE(IntegerValue another)
public boolean isZero()
public IntegerPos integer()
public int intValue()
public long longValue()
public byte asInt8()
public short asInt16()
public int asInt32()
public long asInt64()
public boolean asBooleanVar()
public long asUInt32()
public char asUInt16()
public short asUInt8()
public IntegerValue bitwiseAnd(IntegerValue another)
public IntegerValue bitwiseOr(IntegerValue another)
public IntegerValue bitwiseXor(IntegerValue another)
public IntegerValue dividedBy(IntegerValue another)
public IntegerValue leftShift(IntegerValue another)
public IntegerValue maximum(IntegerValue another)
public IntegerValue minimum(IntegerValue another)
public IntegerValue minus(IntegerValue another)
public IntegerValue mod(IntegerValue another)
public IntegerValue plus(IntegerValue another)
public IntegerValue times(IntegerValue another)
public int bitCount()
public int actualHashForEqual()
Heaper
actualHashForEqual in class Heaperpublic void printContentsOn(java.io.PrintWriter oo)
Heaper
printContentsOn in class Heaperpublic java.lang.String toString()
toString in class Heaperpublic java.math.BigInteger toBigInteger()
public IntegerValue abs()
public IntegerValue negated()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||