public interface RBitSetRx extends RExpirableRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.rxjava3.core.Completable |
and(String... bitSetNames)
Executes AND operation over this object and specified bitsets.
|
io.reactivex.rxjava3.core.Single<Long> |
cardinality()
Returns the number of bits set to one.
|
io.reactivex.rxjava3.core.Completable |
clear()
Set all bits to zero
|
io.reactivex.rxjava3.core.Single<Boolean> |
clear(long bitIndex)
Set bit to zero at specified
bitIndex |
io.reactivex.rxjava3.core.Completable |
clear(long fromIndex,
long toIndex)
Set all bits to zero from
fromIndex (inclusive) to toIndex (exclusive) |
io.reactivex.rxjava3.core.Single<Boolean> |
get(long bitIndex)
Returns
true if bit set to one and false overwise. |
io.reactivex.rxjava3.core.Single<Byte> |
getByte(long offset)
Returns byte number at specified
offset |
io.reactivex.rxjava3.core.Single<Integer> |
getInteger(long offset)
Returns integer number at specified
offset |
io.reactivex.rxjava3.core.Single<Long> |
getLong(long offset)
Returns long number at specified
offset |
io.reactivex.rxjava3.core.Single<Short> |
getShort(long offset)
Returns short number at specified
offset |
io.reactivex.rxjava3.core.Single<Byte> |
incrementAndGetByte(long offset,
byte increment)
Increments current byte value on defined
increment value at specified offset
and returns result. |
io.reactivex.rxjava3.core.Single<Integer> |
incrementAndGetInteger(long offset,
int increment)
Increments current integer value on defined
increment value at specified offset
and returns result. |
io.reactivex.rxjava3.core.Single<Long> |
incrementAndGetLong(long offset,
long increment)
Increments current long value on defined
increment value at specified offset
and returns result. |
io.reactivex.rxjava3.core.Single<Short> |
incrementAndGetShort(long offset,
short increment)
Increments current short value on defined
increment value at specified offset
and returns result. |
io.reactivex.rxjava3.core.Single<Long> |
length()
Returns "logical size" = index of highest set bit plus one.
|
io.reactivex.rxjava3.core.Completable |
not()
Executes NOT operation over all bits
|
io.reactivex.rxjava3.core.Completable |
or(String... bitSetNames)
Executes OR operation over this object and specified bitsets.
|
io.reactivex.rxjava3.core.Completable |
set(BitSet bs)
Copy bits state of source BitSet object to this object
|
io.reactivex.rxjava3.core.Single<Boolean> |
set(long bitIndex)
Set bit to one at specified bitIndex
|
io.reactivex.rxjava3.core.Single<Boolean> |
set(long bitIndex,
boolean value)
Set bit to
value at specified bitIndex |
io.reactivex.rxjava3.core.Completable |
set(long fromIndex,
long toIndex)
Set all bits to one from
fromIndex (inclusive) to toIndex (exclusive) |
io.reactivex.rxjava3.core.Completable |
set(long fromIndex,
long toIndex,
boolean value)
Set all bits to
value from fromIndex (inclusive) to toIndex (exclusive) |
io.reactivex.rxjava3.core.Single<Byte> |
setByte(long offset,
byte value)
Returns previous value of byte number and replaces it
with defined
value at specified offset |
io.reactivex.rxjava3.core.Single<Integer> |
setInteger(long offset,
int value)
Returns previous value of integer number and replaces it
with defined
value at specified offset |
io.reactivex.rxjava3.core.Single<Long> |
setLong(long offset,
long value)
Returns previous value of long number and replaces it
with defined
value at specified offset |
io.reactivex.rxjava3.core.Single<Short> |
setShort(long offset,
short value)
Returns previous value of short number and replaces it
with defined
value at specified offset |
io.reactivex.rxjava3.core.Single<Long> |
size()
Returns number of set bits.
|
io.reactivex.rxjava3.core.Single<byte[]> |
toByteArray() |
io.reactivex.rxjava3.core.Completable |
xor(String... bitSetNames)
Executes XOR operation over this object and specified bitsets.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
io.reactivex.rxjava3.core.Single<Byte> getByte(long offset)
offset
offset
- - offset of numberio.reactivex.rxjava3.core.Single<Byte> setByte(long offset, byte value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberio.reactivex.rxjava3.core.Single<Byte> incrementAndGetByte(long offset, byte increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueio.reactivex.rxjava3.core.Single<Short> getShort(long offset)
offset
offset
- - offset of numberio.reactivex.rxjava3.core.Single<Short> setShort(long offset, short value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberio.reactivex.rxjava3.core.Single<Short> incrementAndGetShort(long offset, short increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueio.reactivex.rxjava3.core.Single<Integer> getInteger(long offset)
offset
offset
- - offset of numberio.reactivex.rxjava3.core.Single<Integer> setInteger(long offset, int value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberio.reactivex.rxjava3.core.Single<Integer> incrementAndGetInteger(long offset, int increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueio.reactivex.rxjava3.core.Single<Long> getLong(long offset)
offset
offset
- - offset of numberio.reactivex.rxjava3.core.Single<Long> setLong(long offset, long value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberio.reactivex.rxjava3.core.Single<Long> incrementAndGetLong(long offset, long increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueio.reactivex.rxjava3.core.Single<byte[]> toByteArray()
io.reactivex.rxjava3.core.Single<Long> length()
io.reactivex.rxjava3.core.Completable set(long fromIndex, long toIndex, boolean value)
value
from fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusivevalue
- true = 1, false = 0io.reactivex.rxjava3.core.Completable clear(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusiveio.reactivex.rxjava3.core.Completable set(BitSet bs)
bs
- - BitSet sourceio.reactivex.rxjava3.core.Completable not()
io.reactivex.rxjava3.core.Completable set(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusiveio.reactivex.rxjava3.core.Single<Long> size()
io.reactivex.rxjava3.core.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.rxjava3.core.Single<Boolean> set(long bitIndex)
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falseio.reactivex.rxjava3.core.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.rxjava3.core.Single<Long> cardinality()
io.reactivex.rxjava3.core.Single<Boolean> clear(long bitIndex)
bitIndex
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falseio.reactivex.rxjava3.core.Completable clear()
io.reactivex.rxjava3.core.Completable or(String... bitSetNames)
bitSetNames
- - name of stored bitsetsio.reactivex.rxjava3.core.Completable and(String... bitSetNames)
bitSetNames
- - name of stored bitsetsio.reactivex.rxjava3.core.Completable xor(String... bitSetNames)
bitSetNames
- - name of stored bitsetsCopyright © 2014–2021 Redisson. All rights reserved.