addAll

public abstract boolean addAll(ProbabilisticFilter<E> f)

Combines this filter with another compatible filter (optional operation). The mutations happen to this instance. Callers must ensure this filter is appropriately sized to avoid saturating it or running out of space.

Return

true if the operation was successful, false otherwise

Parameters

f

filter to be combined into this filter - f is not mutated

See also

Throws

if the addAll operation is not supported by this filter

if the specified filter is null

if this filter cannot be combined with the specified filter at this time due to insertion restrictions


public abstract boolean addAll(Collection<? extends E> c)

Adds all of the elements in the specified collection to this filter (optional operation). The behavior of this operation is undefined if the specified collection is modified while the operation is in progress.

Return

true if all elements of the collection were successfully added, false otherwise

Parameters

c

collection containing elements to be added to this filter

See also

Throws

if the addAll operation is not supported by this filter

if the class of an element of the specified collection prevents it from being added to this filter

if the specified collection contains a null element and this filter does not permit null elements, or if the specified collection is null

if some property of an element of the specified collection prevents it from being added to this filter

if not all the elements can be added at this time due to insertion restrictions