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