Abstraction of numeric types like Integer that may be
represented as a sequence of bits, and may be the subject
of bitwise operations.
| Attributes | |
| not | Source Code shared formal Other not The binary complement of this sequence of bits. |
| size | Source Code shared formal Integer size The number of bits (0 or 1) that this sequence of bits can hold. |
| Inherited Attributes |
| Attributes inherited from: Object |
| Methods | |
| and | Source Code shared formal Other and(Other other) Performs a logical AND operation. |
| clear | Source Code Returns a new number with the given bit set to 0. Bits are indexed from right to left. |
| flip | Source Code Returns a new number with the given bit flipped to its opposite value. Bits are indexed from right to left. |
| get | Source Code Retrieves a given bit from this bit sequence. Bits are indexed from right to left. |
| leftLogicalShift | Source Code Performs a left logical shift. Sign is not preserved. Padded with zeros. |
| or | Source Code shared formal Other or(Other other) Performs a logical inclusive OR operation. |
| rightArithmeticShift | Source Code Performs a right arithmetic shift. Sign is preserved. Padded with zeros. |
| rightLogicalShift | Source Code Performs a right logical shift. Sign is not preserved. Padded with zeros. |
| set | Source Code Returns a new number with the given bit set to the given value. Bits are indexed from right to left. Parameters:
|
| xor | Source Code shared formal Other xor(Other other) Performs a logical exclusive OR operation. |
| Inherited Methods |
| Methods inherited from: Object |