public interface Bitmap
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(@NotNull Transaction txn,
long bit)
Sets the specified bit to
false. |
long |
count(@NotNull Transaction txn)
Returns total number of bits with the value
true. |
long |
count(@NotNull Transaction txn,
long firstBit,
long lastBit)
Returns number of bits with the value
true in the range [firstBit, lastBit]. |
boolean |
get(@NotNull Transaction txn,
long bit)
Returns
true if the specified bit is set. |
@NotNull Environment |
getEnvironment() |
long |
getFirst(@NotNull Transaction txn)
Returns the first (the least) bit with the value
true. |
long |
getLast(@NotNull Transaction txn)
Returns the last (the greatest) bit with the value
true. |
@NotNull jetbrains.exodus.core.dataStructures.hash.LongIterator |
iterator(@NotNull Transaction txn)
Creates new instance of LongIterator which iterates bit numbers with the value
true
in ascending order. |
@NotNull jetbrains.exodus.core.dataStructures.hash.LongIterator |
reverseIterator(@NotNull Transaction txn)
Creates new instance of LongIterator which iterates bit numbers with the value
true
in descending order. |
boolean |
set(@NotNull Transaction txn,
long bit,
boolean value)
Sets
value of the specified bit. |
@NotNull @NotNull Environment getEnvironment()
boolean get(@NotNull
@NotNull Transaction txn,
long bit)
true if the specified bit is set.txn - transaction instancebit - bit numbertrue if specified bit is setboolean set(@NotNull
@NotNull Transaction txn,
long bit,
boolean value)
value of the specified bit.txn - transaction instancebit - bit numbervalue - boolean value which will be settrue if value was changedboolean clear(@NotNull
@NotNull Transaction txn,
long bit)
false.txn - transaction instancebit - bit numbertrue if value was changed@NotNull
@NotNull jetbrains.exodus.core.dataStructures.hash.LongIterator iterator(@NotNull
@NotNull Transaction txn)
true
in ascending order.txn - transaction instanceLongIterator@NotNull
@NotNull jetbrains.exodus.core.dataStructures.hash.LongIterator reverseIterator(@NotNull
@NotNull Transaction txn)
true
in descending order.txn - transaction instanceLongIteratorlong getFirst(@NotNull
@NotNull Transaction txn)
true.txn - transaction instancelong getLast(@NotNull
@NotNull Transaction txn)
true.txn - transaction instancelong count(@NotNull
@NotNull Transaction txn)
true.txn - transaction instancelong count(@NotNull
@NotNull Transaction txn,
long firstBit,
long lastBit)
true in the range [firstBit, lastBit]. The range includes
both firstBit and lastBit.txn - transaction instancefirstBit - the first (the least) bit of the rangelastBit - the last (the greatest) bit of the range