Java.Util.Concurrent.IBlockingDeque.Element Method
Retrieves, but does not remove, the head of the queue represented by this deque (in other words, the first element of this deque).

Syntax

[Android.Runtime.Register("element", "()Ljava/lang/Object;", "GetElementHandler:Java.Util.Concurrent.IBlockingDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object Element ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Util.NoSuchElementExceptionif this deque is empty

Remarks

Retrieves, but does not remove, the head of the queue represented by this deque (in other words, the first element of this deque). This method differs from IBlockingDeque.Peek only in that it throws an exception if this deque is empty.

This method is equivalent to Java.Util.IDeque.First.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9