contains

public boolean contains(E e)

Returns true if this filter might contain the specified element, false if this is definitely not the case.

Return

true if this filter might contain the specified element, false if this is definitely not the case.

Parameters

e

element whose containment in this filter is to be tested

See also

<a target="guavadoc" href="http://google.github.io/guava/releases/snapshot/api/docs/com/google/common/hash/BloomFilter.html#mightContain(T)">com.google.common.hash.BloomFilter#mightContain(T)</a>

Throws

if the type of the specified element is incompatible with this filter (optional)

if the specified element is null and this filter does not permit null elements