Interface RBitSetRx

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.reactivex.Flowable<Void> and​(String... bitSetNames)
      Executes AND operation over this object and specified bitsets.
      io.reactivex.Flowable<Long> cardinality()
      Returns the number of bits set to one.
      io.reactivex.Flowable<Void> clear()
      Set all bits to zero
      io.reactivex.Flowable<Boolean> clear​(long bitIndex)
      Set bit to zero at specified bitIndex
      io.reactivex.Flowable<Void> clear​(long fromIndex, long toIndex)
      Set all bits to zero from fromIndex (inclusive) to toIndex (exclusive)
      io.reactivex.Flowable<Boolean> get​(long bitIndex)
      Returns true if bit set to one and false overwise.
      io.reactivex.Flowable<Long> length()
      Returns "logical size" = index of highest set bit plus one.
      io.reactivex.Flowable<Void> not()
      Executes NOT operation over all bits
      io.reactivex.Flowable<Void> or​(String... bitSetNames)
      Executes OR operation over this object and specified bitsets.
      io.reactivex.Flowable<Boolean> set​(long bitIndex)
      Set bit to one at specified bitIndex
      io.reactivex.Flowable<Boolean> set​(long bitIndex, boolean value)
      Set bit to value at specified bitIndex
      io.reactivex.Flowable<Void> set​(long fromIndex, long toIndex)
      Set all bits to one from fromIndex (inclusive) to toIndex (exclusive)
      io.reactivex.Flowable<Void> set​(long fromIndex, long toIndex, boolean value)
      Set all bits to value from fromIndex (inclusive) to toIndex (exclusive)
      io.reactivex.Flowable<Void> set​(BitSet bs)
      Copy bits state of source BitSet object to this object
      io.reactivex.Flowable<Long> size()
      Returns number of set bits.
      io.reactivex.Flowable<byte[]> toByteArray()  
      io.reactivex.Flowable<Void> xor​(String... bitSetNames)
      Executes XOR operation over this object and specified bitsets.
    • Method Detail

      • toByteArray

        io.reactivex.Flowable<byte[]> toByteArray()
      • length

        io.reactivex.Flowable<Long> length()
        Returns "logical size" = index of highest set bit plus one. Returns zero if there are no any set bit.
        Returns:
        "logical size" = index of highest set bit plus one
      • set

        io.reactivex.Flowable<Void> set​(long fromIndex,
                                        long toIndex,
                                        boolean value)
        Set all bits to value from fromIndex (inclusive) to toIndex (exclusive)
        Parameters:
        fromIndex - inclusive
        toIndex - exclusive
        value - true = 1, false = 0
        Returns:
        void
      • clear

        io.reactivex.Flowable<Void> clear​(long fromIndex,
                                          long toIndex)
        Set all bits to zero from fromIndex (inclusive) to toIndex (exclusive)
        Parameters:
        fromIndex - inclusive
        toIndex - exclusive
        Returns:
        void
      • set

        io.reactivex.Flowable<Void> set​(BitSet bs)
        Copy bits state of source BitSet object to this object
        Parameters:
        bs - - BitSet source
        Returns:
        void
      • not

        io.reactivex.Flowable<Void> not()
        Executes NOT operation over all bits
        Returns:
        void
      • set

        io.reactivex.Flowable<Void> set​(long fromIndex,
                                        long toIndex)
        Set all bits to one from fromIndex (inclusive) to toIndex (exclusive)
        Parameters:
        fromIndex - inclusive
        toIndex - exclusive
        Returns:
        void
      • size

        io.reactivex.Flowable<Long> size()
        Returns number of set bits.
        Returns:
        number of set bits.
      • get

        io.reactivex.Flowable<Boolean> get​(long bitIndex)
        Returns true if bit set to one and false overwise.
        Parameters:
        bitIndex - - index of bit
        Returns:
        true if bit set to one and false overwise.
      • set

        io.reactivex.Flowable<Boolean> set​(long bitIndex)
        Set bit to one at specified bitIndex
        Parameters:
        bitIndex - - index of bit
        Returns:
        true - if previous value was true, false - if previous value was false
      • set

        io.reactivex.Flowable<Boolean> set​(long bitIndex,
                                           boolean value)
        Set bit to value at specified bitIndex
        Parameters:
        bitIndex - - index of bit
        value - true = 1, false = 0
        Returns:
        true - if previous value was true, false - if previous value was false
      • cardinality

        io.reactivex.Flowable<Long> cardinality()
        Returns the number of bits set to one.
        Returns:
        number of bits
      • clear

        io.reactivex.Flowable<Boolean> clear​(long bitIndex)
        Set bit to zero at specified bitIndex
        Parameters:
        bitIndex - - index of bit
        Returns:
        true - if previous value was true, false - if previous value was false
      • clear

        io.reactivex.Flowable<Void> clear()
        Set all bits to zero
        Returns:
        void
      • or

        io.reactivex.Flowable<Void> or​(String... bitSetNames)
        Executes OR operation over this object and specified bitsets. Stores result into this object.
        Parameters:
        bitSetNames - - name of stored bitsets
        Returns:
        void
      • and

        io.reactivex.Flowable<Void> and​(String... bitSetNames)
        Executes AND operation over this object and specified bitsets. Stores result into this object.
        Parameters:
        bitSetNames - - name of stored bitsets
        Returns:
        void
      • xor

        io.reactivex.Flowable<Void> xor​(String... bitSetNames)
        Executes XOR operation over this object and specified bitsets. Stores result into this object.
        Parameters:
        bitSetNames - - name of stored bitsets
        Returns:
        void