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, notEqualUnsignedWord add(UnsignedWord val)
(this + val).val - value to be added to this Unsigned.this + valUnsignedWord subtract(UnsignedWord val)
(this - val).val - value to be subtracted from this Unsigned.this - valUnsignedWord multiply(UnsignedWord val)
(this * val).val - value to be multiplied by this Unsigned.this * valUnsignedWord unsignedDivide(UnsignedWord val)
(this / val).val - value by which this Unsigned is to be divided.this / valUnsignedWord unsignedRemainder(UnsignedWord val)
(this % val).val - value by which this Unsigned is to be divided, and the remainder computed.this % valUnsignedWord shiftLeft(UnsignedWord n)
(this << n).n - shift distance, in bits.this << nUnsignedWord unsignedShiftRight(UnsignedWord n)
(this >>> n). No sign extension is performed.n - shift distance, in bits.this >> nUnsignedWord and(UnsignedWord val)
(this & val).val - value to be AND'ed with this Unsigned.this & valUnsignedWord or(UnsignedWord val)
(this | val).val - value to be OR'ed with this Unsigned.this | valUnsignedWord xor(UnsignedWord val)
(this ^ val).val - value to be XOR'ed with this Unsigned.this ^ valUnsignedWord not()
(~this).~thisboolean equal(UnsignedWord val)
val - value to which this Unsigned is to be compared.this == valboolean notEqual(UnsignedWord val)
val - value to which this Unsigned is to be compared.this != valboolean belowThan(UnsignedWord val)
val - value to which this Unsigned is to be compared.this < valboolean belowOrEqual(UnsignedWord val)
val - value to which this Unsigned is to be compared.this <= valboolean aboveThan(UnsignedWord val)
val - value to which this Unsigned is to be compared.this > valboolean aboveOrEqual(UnsignedWord val)
val - value to which this Unsigned is to be compared.this >= valUnsignedWord 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 + valUnsignedWord 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 - valUnsignedWord 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 * valUnsignedWord 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 / valUnsignedWord 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 % valUnsignedWord 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 << nUnsignedWord 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 >> nUnsignedWord 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 & valUnsignedWord 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 | valUnsignedWord 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 ^ valboolean 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 == valboolean 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 != valboolean 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 < valboolean 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 <= valboolean 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 > valboolean 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