IBlockingDeque.Push(Object) Method

Definition

Pushes an element onto the stack represented by this deque (in other words, at the head of this deque) if it is possible to do so immediately without violating capacity restrictions, throwing an IllegalStateException if no space is currently available.

[Android.Runtime.Register("push", "(Ljava/lang/Object;)V", "GetPush_Ljava_lang_Object_Handler:Java.Util.Concurrent.IBlockingDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Push (Java.Lang.Object? e);
[<Android.Runtime.Register("push", "(Ljava/lang/Object;)V", "GetPush_Ljava_lang_Object_Handler:Java.Util.Concurrent.IBlockingDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Push : Java.Lang.Object -> unit

Parameters

e
Object

Implements

Attributes

Remarks

Pushes an element onto the stack represented by this deque (in other words, at the head of this deque) if it is possible to do so immediately without violating capacity restrictions, throwing an IllegalStateException if no space is currently available.

This method is equivalent to #addFirst(Object) addFirst.

Java documentation for java.util.concurrent.BlockingDeque.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