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

Method clear

lib/java/util/HashMap.java:353–360  ·  view source on GitHub ↗

Removes all mappings from this hash map, leaving it empty. @see #isEmpty @see #size

()

Source from the content-addressed store, hash-verified

351 * @see #size
352 */
353 @Override
354 public void clear() {
355 if (elementCount > 0) {
356 elementCount = 0;
357 Arrays.fill(elementData, null);
358 modCount++;
359 }
360 }
361
362 /**
363 * Returns a shallow copy of this map.

Callers

nothing calls this directly

Calls 2

fillMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected