public interface UnsignedWord extends ComparableWord
Modifier and Type | Method and Description |
---|---|
boolean |
aboveOrEqual(int val)
Compares this Unsigned with the specified value.
|
boolean |
aboveOrEqual(UnsignedWord val)
Compares this Unsigned with the specified value.
|
boolean |
aboveThan(int val)
Compares this Unsigned with the specified value.
|
boolean |
aboveThan(UnsignedWord val)
Compares this Unsigned with the specified value.
|
UnsignedWord |
add(int val)
Returns a Unsigned whose value is
(this + val) . |
UnsignedWord |
add(UnsignedWord val)
Returns a Unsigned whose value is
(this + val) . |
UnsignedWord |
and(int val)
Returns a Unsigned whose value is
(this & val) . |
UnsignedWord |
and(UnsignedWord val)
Returns a Unsigned whose value is
(this & val) . |
boolean |
belowOrEqual(int val)
Compares this Unsigned with the specified value.
|
boolean |
belowOrEqual(UnsignedWord val)
Compares this Unsigned with the specified value.
|
boolean |
belowThan(int val)
Compares this Unsigned with the specified value.
|
boolean |
belowThan(UnsignedWord val)
Compares this Unsigned with the specified value.
|
boolean |
equal(int val)
Compares this Unsigned with the specified value.
|
boolean |
equal(UnsignedWord val)
Compares this Unsigned with the specified value.
|
UnsignedWord |
multiply(int val)
Returns a Unsigned whose value is
(this * val) . |
UnsignedWord |
multiply(UnsignedWord val)
Returns a Unsigned whose value is
(this * val) . |
UnsignedWord |
not()
Returns a Unsigned whose value is
(~this) . |
boolean |
notEqual(int val)
Compares this Unsigned with the specified value.
|
boolean |
notEqual(UnsignedWord val)
Compares this Unsigned with the specified value.
|
UnsignedWord |
or(int val)
Returns a Unsigned whose value is
(this | val) . |
UnsignedWord |
or(UnsignedWord val)
Returns a Unsigned whose value is
(this | val) . |
UnsignedWord |
shiftLeft(int n)
Returns a Unsigned whose value is
(this << n) . |
UnsignedWord |
shiftLeft(UnsignedWord n)
Returns a Unsigned whose value is
(this << n) . |
UnsignedWord |
subtract(int val)
Returns a Unsigned whose value is
(this - val) . |
UnsignedWord |
subtract(UnsignedWord val)
Returns a Unsigned whose value is
(this - val) . |
UnsignedWord |
unsignedDivide(int val)
Returns a Unsigned whose value is
(this / val) . |
UnsignedWord |
unsignedDivide(UnsignedWord val)
Returns a Unsigned whose value is
(this / val) . |
UnsignedWord |
unsignedRemainder(int val)
Returns a Unsigned whose value is
(this % val) . |
UnsignedWord |
unsignedRemainder(UnsignedWord val)
Returns a Unsigned whose value is
(this % val) . |
UnsignedWord |
unsignedShiftRight(int n)
Returns a Unsigned whose value is
(this >>> n) . |
UnsignedWord |
unsignedShiftRight(UnsignedWord n)
Returns a Unsigned whose value is
(this >>> n) . |
UnsignedWord |
xor(int val)
Returns a Unsigned whose value is
(this ^ val) . |
UnsignedWord |
xor(UnsignedWord val)
Returns a Unsigned whose value is
(this ^ val) . |
equal, notEqual
UnsignedWord add(UnsignedWord val)
(this + val)
.val
- value to be added to this Unsigned.this + val
UnsignedWord subtract(UnsignedWord val)
(this - val)
.val
- value to be subtracted from this Unsigned.this - val
UnsignedWord multiply(UnsignedWord val)
(this * val)
.val
- value to be multiplied by this Unsigned.this * val
UnsignedWord unsignedDivide(UnsignedWord val)
(this / val)
.val
- value by which this Unsigned is to be divided.this / val
UnsignedWord unsignedRemainder(UnsignedWord val)
(this % val)
.val
- value by which this Unsigned is to be divided, and the remainder computed.this % val
UnsignedWord shiftLeft(UnsignedWord n)
(this << n)
.n
- shift distance, in bits.this << n
UnsignedWord unsignedShiftRight(UnsignedWord n)
(this >>> n)
. No sign extension is performed.n
- shift distance, in bits.this >> n
UnsignedWord and(UnsignedWord val)
(this & val)
.val
- value to be AND'ed with this Unsigned.this & val
UnsignedWord or(UnsignedWord val)
(this | val)
.val
- value to be OR'ed with this Unsigned.this | val
UnsignedWord xor(UnsignedWord val)
(this ^ val)
.val
- value to be XOR'ed with this Unsigned.this ^ val
UnsignedWord not()
(~this)
.~this
boolean equal(UnsignedWord val)
val
- value to which this Unsigned is to be compared.this == val
boolean notEqual(UnsignedWord val)
val
- value to which this Unsigned is to be compared.this != val
boolean belowThan(UnsignedWord val)
val
- value to which this Unsigned is to be compared.this < val
boolean belowOrEqual(UnsignedWord val)
val
- value to which this Unsigned is to be compared.this <= val
boolean aboveThan(UnsignedWord val)
val
- value to which this Unsigned is to be compared.this > val
boolean aboveOrEqual(UnsignedWord val)
val
- value to which this Unsigned is to be compared.this >= val
UnsignedWord add(int val)
(this + val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to be added to this Unsigned.this + val
UnsignedWord subtract(int val)
(this - val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to be subtracted from this Unsigned.this - val
UnsignedWord multiply(int val)
(this * val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to be multiplied by this Unsigned.this * val
UnsignedWord unsignedDivide(int val)
(this / val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value by which this Unsigned is to be divided.this / val
UnsignedWord unsignedRemainder(int val)
(this % val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value by which this Unsigned is to be divided, and the remainder computed.this % val
UnsignedWord shiftLeft(int n)
(this << n)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
n
- shift distance, in bits.this << n
UnsignedWord unsignedShiftRight(int n)
(this >>> n)
. No sign extension is performed.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
n
- shift distance, in bits.this >> n
UnsignedWord and(int val)
(this & val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to be AND'ed with this Unsigned.this & val
UnsignedWord or(int val)
(this | val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to be OR'ed with this Unsigned.this | val
UnsignedWord xor(int val)
(this ^ val)
.
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to be XOR'ed with this Unsigned.this ^ val
boolean equal(int val)
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to which this Unsigned is to be compared.this == val
boolean notEqual(int val)
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to which this Unsigned is to be compared.this != val
boolean belowThan(int val)
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to which this Unsigned is to be compared.this < val
boolean belowOrEqual(int val)
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to which this Unsigned is to be compared.this <= val
boolean aboveThan(int val)
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to which this Unsigned is to be compared.this > val
boolean aboveOrEqual(int val)
Note that the right operand is a signed value, while the operation is performed unsigned. Therefore, the result is only well-defined for positive right operands.
val
- value to which this Unsigned is to be compared.this >= val