ConcurrentLinkedDeque.RemoveFirstOccurrence(Object) 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 the first occurrence of the specified element from this deque.
[Android.Runtime.Register("removeFirstOccurrence", "(Ljava/lang/Object;)Z", "GetRemoveFirstOccurrence_Ljava_lang_Object_Handler")]
public virtual bool RemoveFirstOccurrence (Java.Lang.Object? o);
[<Android.Runtime.Register("removeFirstOccurrence", "(Ljava/lang/Object;)Z", "GetRemoveFirstOccurrence_Ljava_lang_Object_Handler")>]
abstract member RemoveFirstOccurrence : Java.Lang.Object -> bool
override this.RemoveFirstOccurrence : Java.Lang.Object -> bool
Parameters
- o
- Object
element to be removed from this deque, if present
Returns
true
if the deque contained the specified element
Implements
- Attributes
Exceptions
if the specified element is null
Remarks
Removes the first occurrence of the specified element from this deque. If the deque does not contain the element, it is unchanged. More formally, removes the first element e
such that o.equals(e)
(if such an element exists). Returns true
if this deque contained the specified element (or equivalently, if this deque changed as a result of the call).
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.