다음을 통해 공유


IDeque.Pop Method

Definition

Pops an element from the stack represented by this deque.

[Android.Runtime.Register("pop", "()Ljava/lang/Object;", "GetPopHandler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? Pop ();
[<Android.Runtime.Register("pop", "()Ljava/lang/Object;", "GetPopHandler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Pop : unit -> Java.Lang.Object

Returns

the element at the front of this deque (which is the top of the stack represented by this deque)

Attributes

Exceptions

if this deque is empty

Remarks

Pops an element from the stack represented by this deque. In other words, removes and returns the first element of this deque.

This method is equivalent to #removeFirst().

Java documentation for java.util.Deque.pop().

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