public interface RBitSetRx extends RExpirableRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Completable |
and(String... bitSetNames)
Executes AND operation over this object and specified bitsets.
|
io.reactivex.Single<Long> |
cardinality()
Returns the number of bits set to one.
|
io.reactivex.Completable |
clear()
Set all bits to zero
|
io.reactivex.Single<Boolean> |
clear(long bitIndex)
Set bit to zero at specified
bitIndex |
io.reactivex.Completable |
clear(long fromIndex,
long toIndex)
Set all bits to zero from
fromIndex (inclusive) to toIndex (exclusive) |
io.reactivex.Single<Boolean> |
get(long bitIndex)
Returns
true if bit set to one and false overwise. |
io.reactivex.Single<Long> |
length()
Returns "logical size" = index of highest set bit plus one.
|
io.reactivex.Completable |
not()
Executes NOT operation over all bits
|
io.reactivex.Completable |
or(String... bitSetNames)
Executes OR operation over this object and specified bitsets.
|
io.reactivex.Completable |
set(BitSet bs)
Copy bits state of source BitSet object to this object
|
io.reactivex.Single<Boolean> |
set(long bitIndex)
Set bit to one at specified bitIndex
|
io.reactivex.Single<Boolean> |
set(long bitIndex,
boolean value)
Set bit to
value at specified bitIndex |
io.reactivex.Completable |
set(long fromIndex,
long toIndex)
Set all bits to one from
fromIndex (inclusive) to toIndex (exclusive) |
io.reactivex.Completable |
set(long fromIndex,
long toIndex,
boolean value)
Set all bits to
value from fromIndex (inclusive) to toIndex (exclusive) |
io.reactivex.Single<Long> |
size()
Returns number of set bits.
|
io.reactivex.Single<byte[]> |
toByteArray() |
io.reactivex.Completable |
xor(String... bitSetNames)
Executes XOR operation over this object and specified bitsets.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
io.reactivex.Single<byte[]> toByteArray()
io.reactivex.Single<Long> length()
io.reactivex.Completable set(long fromIndex, long toIndex, boolean value)
value
from fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusivevalue
- true = 1, false = 0io.reactivex.Completable clear(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusiveio.reactivex.Completable set(BitSet bs)
bs
- - BitSet sourceio.reactivex.Completable not()
io.reactivex.Completable set(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusiveio.reactivex.Single<Long> size()
io.reactivex.Single<Boolean> get(long bitIndex)
true
if bit set to one and false
overwise.bitIndex
- - index of bittrue
if bit set to one and false
overwise.io.reactivex.Single<Boolean> set(long bitIndex)
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falseio.reactivex.Single<Boolean> set(long bitIndex, boolean value)
value
at specified bitIndex
bitIndex
- - index of bitvalue
- true = 1, false = 0true
- if previous value was true,
false
- if previous value was falseio.reactivex.Single<Long> cardinality()
io.reactivex.Single<Boolean> clear(long bitIndex)
bitIndex
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falseio.reactivex.Completable clear()
io.reactivex.Completable or(String... bitSetNames)
bitSetNames
- - name of stored bitsetsio.reactivex.Completable and(String... bitSetNames)
bitSetNames
- - name of stored bitsetsio.reactivex.Completable xor(String... bitSetNames)
bitSetNames
- - name of stored bitsetsCopyright © 2014–2020 Redisson. All rights reserved.