public interface SignedWord extends ComparableWord
| Modifier and Type | Method and Description | 
|---|---|
| SignedWord | add(int val)Returns a Signed whose value is  (this + val). | 
| SignedWord | add(SignedWord val)Returns a Signed whose value is  (this + val). | 
| SignedWord | and(int val)Returns a Signed whose value is  (this & val). | 
| SignedWord | and(SignedWord val)Returns a Signed whose value is  (this & val). | 
| boolean | equal(int val)Compares this Signed with the specified value. | 
| boolean | equal(SignedWord val)Compares this Signed with the specified value. | 
| boolean | greaterOrEqual(int val)Compares this Signed with the specified value. | 
| boolean | greaterOrEqual(SignedWord val)Compares this Signed with the specified value. | 
| boolean | greaterThan(int val)Compares this Signed with the specified value. | 
| boolean | greaterThan(SignedWord val)Compares this Signed with the specified value. | 
| boolean | lessOrEqual(int val)Compares this Signed with the specified value. | 
| boolean | lessOrEqual(SignedWord val)Compares this Signed with the specified value. | 
| boolean | lessThan(int val)Compares this Signed with the specified value. | 
| boolean | lessThan(SignedWord val)Compares this Signed with the specified value. | 
| SignedWord | multiply(int val)Returns a Signed whose value is  (this * val). | 
| SignedWord | multiply(SignedWord val)Returns a Signed whose value is  (this * val). | 
| SignedWord | not()Returns a Signed whose value is  (~this). | 
| boolean | notEqual(int val)Compares this Signed with the specified value. | 
| boolean | notEqual(SignedWord val)Compares this Signed with the specified value. | 
| SignedWord | or(int val)Returns a Signed whose value is  (this | val). | 
| SignedWord | or(SignedWord val)Returns a Signed whose value is  (this | val). | 
| SignedWord | shiftLeft(int n)Returns a Signed whose value is  (this << n). | 
| SignedWord | shiftLeft(UnsignedWord n)Returns a Signed whose value is  (this << n). | 
| SignedWord | signedDivide(int val)Returns a Signed whose value is  (this / val). | 
| SignedWord | signedDivide(SignedWord val)Returns a Signed whose value is  (this / val). | 
| SignedWord | signedRemainder(int val)Returns a Signed whose value is  (this % val). | 
| SignedWord | signedRemainder(SignedWord val)Returns a Signed whose value is  (this % val). | 
| SignedWord | signedShiftRight(int n)Returns a Signed whose value is  (this >> n). | 
| SignedWord | signedShiftRight(UnsignedWord n)Returns a Signed whose value is  (this >> n). | 
| SignedWord | subtract(int val)Returns a Signed whose value is  (this - val). | 
| SignedWord | subtract(SignedWord val)Returns a Signed whose value is  (this - val). | 
| SignedWord | xor(int val)Returns a Signed whose value is  (this ^ val). | 
| SignedWord | xor(SignedWord val)Returns a Signed whose value is  (this ^ val). | 
equal, notEqualSignedWord add(SignedWord val)
(this + val).val - value to be added to this Signed.this + valSignedWord subtract(SignedWord val)
(this - val).val - value to be subtracted from this Signed.this - valSignedWord multiply(SignedWord val)
(this * val).val - value to be multiplied by this Signed.this * valSignedWord signedDivide(SignedWord val)
(this / val).val - value by which this Signed is to be divided.this / valSignedWord signedRemainder(SignedWord val)
(this % val).val - value by which this Signed is to be divided, and the remainder computed.this % valSignedWord shiftLeft(UnsignedWord n)
(this << n).n - shift distance, in bits.this << nSignedWord signedShiftRight(UnsignedWord n)
(this >> n). Sign extension is performed.n - shift distance, in bits.this >> nSignedWord and(SignedWord val)
(this & val). (This method returns a negative Signed
 if and only if this and val are both negative.)val - value to be AND'ed with this Signed.this & valSignedWord or(SignedWord val)
(this | val). (This method returns a negative Signed
 if and only if either this or val is negative.)val - value to be OR'ed with this Signed.this | valSignedWord xor(SignedWord val)
(this ^ val). (This method returns a negative Signed
 if and only if exactly one of this and val are negative.)val - value to be XOR'ed with this Signed.this ^ valSignedWord not()
(~this). (This method returns a negative value if and
 only if this Signed is non-negative.)~thisboolean equal(SignedWord val)
val - value to which this Signed is to be compared.this == valboolean notEqual(SignedWord val)
val - value to which this Signed is to be compared.this != valboolean lessThan(SignedWord val)
val - value to which this Signed is to be compared.this < valboolean lessOrEqual(SignedWord val)
val - value to which this Signed is to be compared.this <= valboolean greaterThan(SignedWord val)
val - value to which this Signed is to be compared.this > valboolean greaterOrEqual(SignedWord val)
val - value to which this Signed is to be compared.this >= valSignedWord add(int val)
(this + val).val - value to be added to this Signed.this + valSignedWord subtract(int val)
(this - val).val - value to be subtracted from this Signed.this - valSignedWord multiply(int val)
(this * val).val - value to be multiplied by this Signed.this * valSignedWord signedDivide(int val)
(this / val).val - value by which this Signed is to be divided.this / valSignedWord signedRemainder(int val)
(this % val).val - value by which this Signed is to be divided, and the remainder computed.this % valSignedWord shiftLeft(int n)
(this << n).n - shift distance, in bits.this << nSignedWord signedShiftRight(int n)
(this >> n). Sign extension is performed.n - shift distance, in bits.this >> nSignedWord and(int val)
(this & val). (This method returns a negative Signed
 if and only if this and val are both negative.)val - value to be AND'ed with this Signed.this & valSignedWord or(int val)
(this | val). (This method returns a negative Signed
 if and only if either this or val is negative.)val - value to be OR'ed with this Signed.this | valSignedWord xor(int val)
(this ^ val). (This method returns a negative Signed
 if and only if exactly one of this and val are negative.)val - value to be XOR'ed with this Signed.this ^ valboolean equal(int val)
val - value to which this Signed is to be compared.this == valboolean notEqual(int val)
val - value to which this Signed is to be compared.this != valboolean lessThan(int val)
val - value to which this Signed is to be compared.this < valboolean lessOrEqual(int val)
val - value to which this Signed is to be compared.this <= valboolean greaterThan(int val)
val - value to which this Signed is to be compared.this > valboolean greaterOrEqual(int val)
val - value to which this Signed is to be compared.this >= val