put

public boolean put(long item)

Puts an element into this CuckooFilter. Ensures that subsequent invocations of mightContain with the same element will always return true.

Note that the filter should be considered full after insertion failure. Further inserts may fail, although deleting items can also make the filter usable again.

Also note that inserting the same item more than 8 times will cause an insertion failure.

Return

true if the cuckoo filter inserts this item successfully. Returns false if insertion failed.

Parameters

item

item to insert into the filter