| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.collect.Bitmap |
A fast, efficient bitmap making optimal use of memory.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Bitmap(int bitsize) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addAllFrom(Bitmap other)
Add the values of a source bitmap into this bitmap.
| ||||||||||
| void |
clear()
Clear the bitmap to all false.
| ||||||||||
| Bitmap | clone() | ||||||||||
| int |
countOnes()
Count the number of true values in the bitmap.
| ||||||||||
| int |
countZeros()
Count the number of false values in the bitmap.
| ||||||||||
| boolean | equals(Object obj) | ||||||||||
| String | formatAsRanges(boolean useExcludedEnds) | ||||||||||
| String | formatAsRanges() | ||||||||||
| boolean |
get(int i)
Retrieve the value of a bit.
| ||||||||||
| int | hashCode() | ||||||||||
| boolean |
isEmpty()
Determine whether all entries in the bitmap are set to false.
| ||||||||||
| boolean |
isFull()
Determine whether all entries in the bitmap are set to true.
| ||||||||||
| List<Integer> |
ones()
Generate a list of zero-based indices for the bitmap entry is true.
| ||||||||||
| void |
removeAllFrom(Bitmap other)
Remove the values of a source bitmap into this bitmap.
| ||||||||||
| void |
reset(int i)
Fast reset a bit to false.
| ||||||||||
| void |
set(int i)
Fast set a bit to true.
| ||||||||||
| boolean |
set(int i, boolean v)
Set a bit to the provided value.
| ||||||||||
| void |
setRange(int from, int to)
Fast set multiple bits to true.
| ||||||||||
| int |
size()
Retrieve the map size.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Add the values of a source bitmap into this bitmap. Both bitmaps must have the same size.
| other | source bitmap |
|---|
Clear the bitmap to all false.
Count the number of true values in the bitmap.
Count the number of false values in the bitmap.
Retrieve the value of a bit.
| i | zero-based index |
|---|
Determine whether all entries in the bitmap are set to false.
Determine whether all entries in the bitmap are set to true.
Generate a list of zero-based indices for the bitmap entry is true.
Remove the values of a source bitmap into this bitmap. Both bitmaps must have the same size.
| other | source bitmap |
|---|
Fast reset a bit to false.
| i | zero-based index |
|---|
Fast set a bit to true.
| i | zero-based index |
|---|
Set a bit to the provided value.
| i | zero-based index |
|---|---|
| v | value |
Fast set multiple bits to true.
| from | start zero-based index (inclusive) |
|---|---|
| to | end zero-based index (exclusive) |
Retrieve the map size.