Udostępnij za pośrednictwem


LinkedList.OfferFirst(Object) Method

Definition

Inserts the specified element at the front of this list.

[Android.Runtime.Register("offerFirst", "(Ljava/lang/Object;)Z", "GetOfferFirst_Ljava_lang_Object_Handler")]
public virtual bool OfferFirst (Java.Lang.Object? e);
[<Android.Runtime.Register("offerFirst", "(Ljava/lang/Object;)Z", "GetOfferFirst_Ljava_lang_Object_Handler")>]
abstract member OfferFirst : Java.Lang.Object -> bool
override this.OfferFirst : Java.Lang.Object -> bool

Parameters

e
Object

the element to insert

Returns

true (as specified by Deque#offerFirst)

Implements

Attributes

Remarks

Inserts the specified element at the front of this list.

Added in 1.6.

Java documentation for java.util.LinkedList.offerFirst(E).

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