Java.Util.AbstractCollection.Remove Method
Removes one instance of the specified object from this Collection if one is contained (optional).

Syntax

[Android.Runtime.Register("remove", "(Ljava/lang/Object;)Z", "GetRemove_Ljava_lang_Object_Handler")]
public virtual bool Remove (Java.Lang.Object object)

Parameters

object
the object to remove.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif removing from this Collection is not supported.
Java.Lang.ClassCastExceptionif the object passed is not of the correct type.
Java.Lang.NullPointerExceptionif object is null and this Collection doesn't support null elements.

Remarks

Removes one instance of the specified object from this Collection if one is contained (optional). This implementation iterates over this Collection and tests for each element e returned by the iterator, whether e is equal to the given object. If object != null then this test is performed using object.equals(e), otherwise using object == null. If an element equal to the given object is found, then the remove method is called on the iterator and true is returned, false otherwise. If the iterator does not support removing elements, an UnsupportedOperationException is thrown.

[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