IDeque.OfferLast(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts the specified element at the end of this deque unless it would violate capacity restrictions.
[Android.Runtime.Register("offerLast", "(Ljava/lang/Object;)Z", "GetOfferLast_Ljava_lang_Object_Handler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OfferLast (Java.Lang.Object? e);
[<Android.Runtime.Register("offerLast", "(Ljava/lang/Object;)Z", "GetOfferLast_Ljava_lang_Object_Handler:Java.Util.IDequeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OfferLast : Java.Lang.Object -> bool
Parameters
- e
- Object
the element to add
Returns
true
if the element was added to this deque, else
false
- Attributes
Remarks
Inserts the specified element at the end of this deque unless it would violate capacity restrictions. When using a capacity-restricted deque, this method is generally preferable to the #addLast
method, which can fail to insert an element only by throwing an exception.
Java documentation for java.util.Deque.offerLast(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.