Condividi tramite


LinkedList.Offer(Object) Method

Definition

Adds the specified element as the tail (last element) of this list.

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

Parameters

e
Object

the element to add

Returns

true (as specified by Queue#offer)

Implements

Attributes

Remarks

Adds the specified element as the tail (last element) of this list.

Added in 1.5.

Java documentation for java.util.LinkedList.offer(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