Interface RBitSetReactive

    • Method Summary

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

      • toByteArray

        org.reactivestreams.Publisher<byte[]> toByteArray()
      • length

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<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

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

        org.reactivestreams.Publisher<Void> not()
        Executes NOT operation over all bits
        Returns:
        void
      • set

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<Long> size()
        Returns number of set bits.
        Returns:
        number of set bits.
      • get

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<Long> cardinality()
        Returns the number of bits set to one.
        Returns:
        number of bits
      • clear

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<Void> clear()
        Set all bits to zero
        Returns:
        void
      • or

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<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

        org.reactivestreams.Publisher<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