/** * Clears the map and reduces the size of the backing arrays to be the specified capacity if they * are larger. */ public void clear(int maximumCapacity) { if (capacity <= maximumCapacity) { clear(); return; } hasZeroValue = false; size = 0; resize(maximumCapacity); }