MCPcopy Create free account
hub / github.com/davidgiven/luje / add

Method add

lib/java/util/HashSet.java:90–93  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

HashSetMethod · 0.95

Calls 1

putMethod · 0.65

Tested by

no test coverage detected