MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / add

Method add

vm/JavaAPI/src/java/util/HashSet.java:86–89  ·  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

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.

Callers 15

getZeroInsetsMethod · 0.95
throwRootMethod · 0.95
getStyleMethod · 0.95
removeTagsMethod · 0.95
getParentMethod · 0.95
getComponentAtMethod · 0.95
findFirstFocusableMethod · 0.95
getComponentFormMethod · 0.95
createProxyStyleMethod · 0.95
cleanConstraintMapsMethod · 0.95
syncDirectoriesMethod · 0.95

Calls 1

putMethod · 0.65