Interface Membership

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Removes the elements from this collection.
      static Membership disabled()
      Returns an instance that contains nothing.
      boolean mightContain​(long e)
      Returns if the element might have been put in this Bloom filter, false if this is definitely not the case.
      boolean put​(long e)
      Puts an element into this collection so that subsequent queries with the same element will return true.
    • Method Detail

      • mightContain

        boolean mightContain​(long e)
        Returns if the element might have been put in this Bloom filter, false if this is definitely not the case.
        Parameters:
        e - the element whose presence is to be tested
        Returns:
        if the element might be present
      • clear

        void clear()
        Removes the elements from this collection.
      • put

        @CanIgnoreReturnValue
        boolean put​(long e)
        Puts an element into this collection so that subsequent queries with the same element will return true.
        Parameters:
        e - the element to add
        Returns:
        if the membership changed as a result of this operation
      • disabled

        static Membership disabled()
        Returns an instance that contains nothing.