java.lang.Object
imagingbook.common.util.bits.BitVector32
- All Implemented Interfaces:
BitVector
This class implements
BitVector
with internal 32-bit int
data.-
Constructor Summary
ConstructorsConstructorDescriptionBitVector32
(boolean[] bools) BitVector32
(byte[] bytes) BitVector32
(int length) -
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(int i) Returnstrue
is the specified bit-element is set (1),false
otherwise (0).int
Returns the length of this bit vector.void
set
(int i) Sets the specified element (to bit-value 1).void
setAll()
Sets all element values to 1.toString()
void
unset
(int i) Unsets the specified element (to bit-value 0).void
unsetAll()
Sets all element values to 0.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface imagingbook.common.util.bits.BitVector
set, toBooleanArray, toByteArray
-
Constructor Details
-
BitVector32
-
BitVector32
-
BitVector32
-
-
Method Details
-
getLength
Description copied from interface:BitVector
Returns the length of this bit vector. -
get
Description copied from interface:BitVector
Returnstrue
is the specified bit-element is set (1),false
otherwise (0). -
set
Description copied from interface:BitVector
Sets the specified element (to bit-value 1). -
unset
Description copied from interface:BitVector
Unsets the specified element (to bit-value 0). -
setAll
Description copied from interface:BitVector
Sets all element values to 1. -
unsetAll
Description copied from interface:BitVector
Sets all element values to 0. -
toString
-