Adds the specified object to this HashSet if not already present. @param object the object to add. @return true when this HashSet did not already contain the object, false otherwise
(E object)
| 88 | * the object, {@code false} otherwise |
| 89 | */ |
| 90 | @Override |
| 91 | public boolean add(E object) { |
| 92 | return backingMap.put(object, this) == null; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Removes all elements from this {@code HashSet}, leaving it empty. |