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.BitBinary4. getBit(int index)Gets the bit at the given index.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>Binary4. getBits()Returns a reference to the list of bits; for testing purposes only.List<Bit>Binary4. safeGetBits()Returns a list of the bits of this binary number.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.voidBinary4. setLeftmostBit(Bit bit)Sets the leftmost bit by copying the value ofbitinto the leftmost bit.Method parameters in <Unnamed> with type arguments of type Bit Modifier and Type Method Description (package private) static voidBinary4. shiftLeft(List<Bit> x)Using recursion, shifts the bits of the specified list one position to the left.Constructors in <Unnamed> with parameters of type Bit Constructor Description Binary4(Bit bit)Initializes this binary number to a single digit binary number by copying the specified bit.Bit(Bit other)Initialize this bit by copying another bit.Constructor parameters in <Unnamed> with type arguments of type Bit Constructor Description Binary4(List<Bit> bits)Initializes this binary number to have the specified bits.
-