Language

LinkedBlockingDeque.PollLast Method

Definition

Overloads

Name Description
PollLast()

Retrieves and removes the last element of this deque, or returns null if this deque is empty.

PollLast(Int64, TimeUnit)

Retrieves and removes the last element of this deque, waiting up to the specified wait time if necessary for an element to become available.

PollLast()

Retrieves and removes the last element of this deque, or returns null if this deque is empty.

[Android.Runtime.Register("pollLast", "()Ljava/lang/Object;", "GetPollLastHandler")]
public virtual Java.Lang.Object? PollLast();
[<Android.Runtime.Register("pollLast", "()Ljava/lang/Object;", "GetPollLastHandler")>]
abstract member PollLast : unit -> Java.Lang.Object
override this.PollLast : unit -> Java.Lang.Object

Returns

the tail of this deque, or null if this deque is empty

Implements

Attributes

Remarks

Retrieves and removes the last element of this deque, or returns null if this deque is empty.

Java reference for java.util.concurrent.LinkedBlockingDeque.pollLast.

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

PollLast(Int64, TimeUnit)

Retrieves and removes the last element of this deque, waiting up to the specified wait time if necessary for an element to become available.

[Android.Runtime.Register("pollLast", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPollLast_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual Java.Lang.Object? PollLast(long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("pollLast", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPollLast_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member PollLast : int64 * Java.Util.Concurrent.TimeUnit -> Java.Lang.Object
override this.PollLast : int64 * Java.Util.Concurrent.TimeUnit -> Java.Lang.Object

Parameters

timeout
Int64

how long to wait before giving up, in units of unit

unit
TimeUnit

a TimeUnit determining how to interpret the timeout parameter

Returns

the tail of this deque, or null if the specified waiting time elapses before an element is available

Implements

Attributes

Exceptions

Remarks

Retrieves and removes the last element of this deque, waiting up to the specified wait time if necessary for an element to become available.

Java reference for java.util.concurrent.LinkedBlockingDeque.pollLast.

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