MCPcopy Index your code
hub / github.com/davidgiven/luje / clear

Method clear

lib/java/util/Hashtable.java:298–302  ·  view source on GitHub ↗

Removes all key/value pairs from this Hashtable, leaving the size zero and the capacity unchanged. @see #isEmpty @see #size

()

Source from the content-addressed store, hash-verified

296 * @see #size
297 */
298 public synchronized void clear() {
299 elementCount = 0;
300 Arrays.fill(elementData, null);
301 modCount++;
302 }
303
304 /**
305 * Returns a new {@code Hashtable} with the same key/value pairs, capacity

Callers

nothing calls this directly

Calls 2

fillMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected