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

Method clear

Ports/CLDC11/src/java/util/HashMap.java:344–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 ///
343 /// - #size
344 @Override
345 public void clear() {
346 if (elementCount > 0) {
347 elementCount = 0;
348 Arrays.fill(elementData, null);
349 modCount++;
350 }
351 }
352
353 /// Computes the threshold for rehashing
354 private void computeThreshold() {

Callers

nothing calls this directly

Calls 2

fillMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected