Java.Util.IDeque.RemoveFirstOccurrence Method
Removes the first occurrence of the specified element from this deque.

Syntax

[Android.Runtime.Register("removeFirstOccurrence", "(Ljava/lang/Object;)Z", "GetRemoveFirstOccurrence_Ljava_lang_Object_Handler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool RemoveFirstOccurrence (Java.Lang.Object o)

Parameters

o
element to be removed from this deque, if present

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ClassCastExceptionif the class of the specified element is incompatible with this deque (optional)
Java.Lang.NullPointerExceptionif the specified element is null and this deque does not permit null elements (optional)

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==null ? e==null : 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).

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9