Java.Util.AbstractQueue.Element Method
Retrieves, but does not remove, the head of this queue.

Syntax

[Android.Runtime.Register("element", "()Ljava/lang/Object;", "GetElementHandler")]
public virtual Java.Lang.Object Element ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Util.NoSuchElementExceptionif this queue is empty

Remarks

Retrieves, but does not remove, the head of this queue. This method differs from IQueue.Peek only in that it throws an exception if this queue is empty.

This implementation returns the result of peek unless the queue is empty.

[Android Documentation]

Requirements

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