Uses of Class
Bit
-
-
Uses of Bit in <Unnamed>
Fields in <Unnamed> declared as Bit Modifier and Type Field Description static Bit
Bit. ONE
The bit 1.static Bit
Bit. ZERO
The bit 0.Methods in <Unnamed> that return Bit Modifier and Type Method Description Bit
Bit. and(Bit other)
Sets this bit to the logical AND of this bit and the other bit.Bit
Binary4. getBit(int index)
Gets the bit at the given index.Bit
Bit. 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.Bit
Bit. or(Bit other)
Sets this bit to the logical OR of this bit and the other bit.Bit
Bit. set(boolean bit)
Sets this bit to 1 ifbit
is true, 0 otherwise.Bit
Bit. 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 Bit
Bit. and(Bit other)
Sets this bit to the logical AND of this bit and the other bit.int
Bit. compareTo(Bit other)
Compares this bit to another bit for order.Bit
Bit. or(Bit other)
Sets this bit to the logical OR of this bit and the other bit.void
Binary4. setLeftmostBit(Bit bit)
Sets the leftmost bit by copying the value ofbit
into the leftmost bit.Method parameters in <Unnamed> with type arguments of type Bit Modifier and Type Method Description (package private) static void
Binary4. 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.
-