Lines Matching defs:object

48      * Attempts to add {@code object} to the contents of this
51 * After this method finishes successfully it is guaranteed that the object
58 * objects, but it has to specify this in the documentation. If the object
62 * If a collection does not yet contain an object that is to be added and
63 * adding the object fails, this method <i>must</i> throw an appropriate
68 * @param object
69 * the object to add.
76 * if the class of the object is inappropriate for this
79 * if the object cannot be added to this {@code Collection}.
83 public boolean add(E object);
98 * if the class of an object is inappropriate for this
101 * if an object cannot be added to this {@code Collection}.
121 * Tests whether this {@code Collection} contains the specified object. Returns
124 * {@code (object==null ? elem==null : object.equals(elem))}.
126 * @param object
127 * the object to search for.
128 * @return {@code true} if object is an element of this {@code Collection},
131 * if the object to look for isn't of the correct
134 * if the object to look for is {@code null} and this
137 public boolean contains(Object object);
163 * the <em>same</em> object using a class specific comparison.
165 * @param object
166 * the object to compare with this object.
167 * @return {@code true} if the object is the same as this object and
168 * {@code false} if it is different from this object.
171 public boolean equals(Object object);
204 * Removes one instance of the specified object from this {@code Collection} if one
206 * complies with {@code (object==null ? elem==null : object.equals(elem)}.
208 * @param object
209 * the object to remove.
215 * if the object passed is not of the correct type.
217 * if {@code object} is {@code null} and this {@code Collection}
220 public boolean remove(Object object);
223 * Removes all occurrences in this {@code Collection} of each object in the