addAll

public boolean addAll(@NotNull() @NotNull() ProbabilisticFilter<E> f)

Combines this filter with another compatible filter. 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 specified filter is null


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

Adds all of the elements in the specified collection to this filter. 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 specified collection contains a null element, or if the specified collection is null