Udostępnij za pośrednictwem


LinkedList.RemoveFirstOccurrence(Object) Method

Definition

Removes the first occurrence of the specified element in this list (when traversing the list from head to tail).

[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 list, if present

Returns

true if the list contained the specified element

Implements

Attributes

Remarks

Removes the first occurrence of the specified element in this list (when traversing the list from head to tail). If the list does not contain the element, it is unchanged.

Added in 1.6.

Java documentation for java.util.LinkedList.removeFirstOccurrence(java.lang.Object).

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.

Applies to

See also