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 TypeMethodDescriptionbooleanget(int i) Returnstrueis the specified bit-element is set (1),falseotherwise (0).intReturns the length of this bit vector.voidset(int i) Sets the specified element (to bit-value 1).voidsetAll()Sets all element values to 1.toString()voidunset(int i) Unsets the specified element (to bit-value 0).voidunsetAll()Sets all element values to 0.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface imagingbook.common.util.bits.BitVector
set, toBooleanArray, toByteArray
-
Constructor Details
-
BitVector32
-
BitVector32
-
BitVector32
-
-
Method Details
-
getLength
Description copied from interface:BitVectorReturns the length of this bit vector. -
get
Description copied from interface:BitVectorReturnstrueis the specified bit-element is set (1),falseotherwise (0). -
set
Description copied from interface:BitVectorSets the specified element (to bit-value 1). -
unset
Description copied from interface:BitVectorUnsets the specified element (to bit-value 0). -
setAll
Description copied from interface:BitVectorSets all element values to 1. -
unsetAll
Description copied from interface:BitVectorSets all element values to 0. -
toString
-