remove
Removes the specified element from this filter (optional operation). The element must be contained in the filter prior to invocation. Removing an element that isn't contained in the filter may put the filter in an inconsistent state causing it to return false negative responses from contains.
If false
is returned, this is definitely an indication that the specified element wasn't contained in the filter prior to invocation. If the implementation treats this condition as an error, then this filter can no longer be relied upon to return correct
false
responses from contains, unless isEmpty is also
true
.
Return
true
if this filter probably contained the specified element, false
otherwise
Parameters
element to be removed from this filter
See also
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
if the remove operation is not supported by this filter