- object
- the object to remove.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.UnsupportedOperationException if removing from this Collection is not supported. Java.Lang.ClassCastException if the object passed is not of the correct type. Java.Lang.NullPointerException if object is null and this Collection doesn't support null elements.
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.