Aracılığıyla paylaş


ArrayDeque.Push(Object) Method

Definition

Pushes an element onto the stack represented by this deque.

[Android.Runtime.Register("push", "(Ljava/lang/Object;)V", "GetPush_Ljava_lang_Object_Handler")]
public virtual void Push (Java.Lang.Object? e);
[<Android.Runtime.Register("push", "(Ljava/lang/Object;)V", "GetPush_Ljava_lang_Object_Handler")>]
abstract member Push : Java.Lang.Object -> unit
override this.Push : Java.Lang.Object -> unit

Parameters

e
Object

the element to push

Implements

Attributes

Remarks

Pushes an element onto the stack represented by this deque. In other words, inserts the element at the front of this deque.

This method is equivalent to #addFirst.

Java documentation for java.util.ArrayDeque.push(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