public interface IBitArray
Modifier and Type | Method and Description |
---|---|
byte[] |
getArray()
Returns the bytes holding the bits.
|
boolean |
getBit(int index)
Tells whether the bit at the specified index is
1 . |
int |
getCount()
Returns the bits count.
|
int |
getOnesCount()
Returns the number of
1 bits. |
java.lang.String |
toString()
Returns the hex string representation of the bits postpended with the count in parenthesis.
|
int getCount()
getOnesCount()
byte[] getArray()
int getOnesCount()
1
bits.1
bits.getBit(int)
boolean getBit(int index)
1
.index
- index of the bit to test, must be in the range of 0..count (exclusive)1
; false otherwisegetOnesCount()
java.lang.String toString()
toString
in class java.lang.Object
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.