Language

IDeque.First Property

Definition

Retrieves, but does not remove, the first element of this deque.

public Java.Lang.Object? First { [Android.Runtime.Register("getFirst", "()Ljava/lang/Object;", "GetGetFirstHandler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getFirst", "()Ljava/lang/Object;", "GetGetFirstHandler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.First : Java.Lang.Object

Property Value

the head of this deque

Attributes

Exceptions

if this deque is empty

Remarks

Retrieves, but does not remove, the first element of this deque. This method differs from peekFirst only in that it throws an exception if this deque is empty.

Java reference for java.util.Deque.getFirst.

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