element whose presence in this collection is to be tested
true
if this collection contains the specified
element
ClassCastException if the type of the specified element is incompatible with this collection (optional)
NullPointerException if the specified element is null and this collection does not permit null elements (optional)
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee).
an Iterator
over the elements in this collection
Returns
true
if this collection contains the specified element. More formally, returnstrue
if and only if this collection contains at least one elemente
such thatObjects.equals(o, e)
.