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)
| 84 | * the object, {@code false} otherwise |
| 85 | */ |
| 86 | @Override |
| 87 | public boolean add(E object) { |
| 88 | return backingMap.put(object, this) == null; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Removes all elements from this {@code HashSet}, leaving it empty. |