- object
- the object to search for.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.ClassCastException if the object to look for isn't of the correct type. Java.Lang.NullPointerException if the object to look for is null and this Collection doesn't support null elements.
Tests whether this Collection contains the specified object. This implementation iterates over this Collection and tests, whether any element is equal to the given object. If object != null then object.equals(e) is called for each element e returned by the iterator until the element is found. If object == null then each element e returned by the iterator is compared with the test e == null.