Lines Matching defs:object
40 public boolean add(E object) {
64 * if the class of an object is inappropriate for this
67 * if an object cannot be added to this {@code Collection}.
109 * Tests whether this {@code Collection} contains the specified object. This
111 * element is equal to the given object. If {@code object != null} then
112 * {@code object.equals(e)} is called for each element {@code e} returned by
113 * the iterator until the element is found. If {@code object == null} then
117 * @param object
118 * the object to search for.
119 * @return {@code true} if object is an element of this {@code Collection}, {@code
122 * if the object to look for isn't of the correct type.
124 * if the object to look for is {@code null} and this
127 public boolean contains(Object object) {
129 if (object != null) {
131 if (object.equals(it.next())) {
202 * Removes one instance of the specified object from this {@code Collection} if one
205 * whether {@code e} is equal to the given object. If {@code object != null}
206 * then this test is performed using {@code object.equals(e)}, otherwise
207 * using {@code object == null}. If an element equal to the given object is
213 * @param object
214 * the object to remove.
220 * if the object passed is not of the correct type.
222 * if {@code object} is {@code null} and this {@code Collection}
225 public boolean remove(Object object) {
227 if (object != null) {
229 if (object.equals(it.next())) {
246 * Removes all occurrences in this {@code Collection} of each object in the