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

Method clear

vm/JavaAPI/src/java/util/Hashtable.java:282–286  ·  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

280 * @see #size
281 */
282 public synchronized void clear() {
283 elementCount = 0;
284 Arrays.fill(elementData, null);
285 modCount++;
286 }
287
288
289 private void computeMaxSize() {

Callers 1

Calls 2

fillMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected