PriorityBlockingQueue.RemoveIf(IPredicate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes all of the elements of this collection that satisfy the given predicate.
[Android.Runtime.Register("removeIf", "(Ljava/util/function/Predicate;)Z", "GetRemoveIf_Ljava_util_function_Predicate_Handler", ApiSince=33)]
public virtual bool RemoveIf(Java.Util.Functions.IPredicate? filter);
[<Android.Runtime.Register("removeIf", "(Ljava/util/function/Predicate;)Z", "GetRemoveIf_Ljava_util_function_Predicate_Handler", ApiSince=33)>]
abstract member RemoveIf : Java.Util.Functions.IPredicate -> bool
override this.RemoveIf : Java.Util.Functions.IPredicate -> bool
Parameters
- filter
- IPredicate
a predicate which returns true for elements to be removed
Returns
true if any elements were removed
Implements
- Attributes
Remarks
Removes all of the elements of this collection that satisfy the given predicate. Errors or runtime exceptions thrown during iteration or by the predicate are relayed to the caller.
Java reference for java.util.concurrent.PriorityBlockingQueue.removeIf.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.