Uses of Class
Bit
-
-
Uses of Bit in <Unnamed>
Fields in <Unnamed> declared as Bit Modifier and Type Field Description static BitBit. ONEThe bit 1.static BitBit. ZEROThe bit 0.Methods in <Unnamed> that return Bit Modifier and Type Method Description BitBit. and(Bit other)Sets this bit to the logical AND of this bit and the other bit.BitBinary. getLeftMostBit()Returns the left-most bit of this binary number.BitBinary. getRightMostBit()Returns the right-most bit of this binary number.BitBit. not()Sets the value of this bit to 0 if the current value of this bit is 1, or sets the value of this bit to 1 if the current value of this bit is 0.BitBit. or(Bit other)Sets this bit to the logical OR of this bit and the other bit.BitBit. set(boolean bit)Sets this bit to 1 ifbitis true, 0 otherwise.BitBit. set(int bit)Sets this bit the specified value.Methods in <Unnamed> that return types with arguments of type Bit Modifier and Type Method Description List<Bit>Binary. getBits()Returns a reference to the list of bits; for testing purposes only.Methods in <Unnamed> with parameters of type Bit Modifier and Type Method Description BitBit. and(Bit other)Sets this bit to the logical AND of this bit and the other bit.intBit. compareTo(Bit other)Compares this bit to another bit for order.BitBit. or(Bit other)Sets this bit to the logical OR of this bit and the other bit.voidBinary. setBit(int index, Bit bit)Sets a bit at the given index by copying the value ofbitinto the bit at the given index.Method parameters in <Unnamed> with type arguments of type Bit Modifier and Type Method Description (package private) static intBinary. toDecimalHelper(List<Bit> bits)Recursively computes the decimal value of a binary number represented as a list of bits.Constructors in <Unnamed> with parameters of type Bit Constructor Description Bit(Bit other)Initialize this bit by copying another bit.Constructor parameters in <Unnamed> with type arguments of type Bit Constructor Description Binary(List<Bit> bits)Initializes this binary number to have the specified bits.
-