code: @SuppressWarnings("unchecked")
  	public void clear(final boolean shrink) {
  		clearCache();
  		if (elementCount > 0) {
  			elementCount = 0;
  		}
  		if (shrink && (elementData.length > 1024) && (elementData.length > defaultSize)) {
  			elementData = new IntEntry[defaultSize];
  		} else {
  			Arrays.fill(elementData, null);
  		}
  		computeMaxSize();
  	}
docs: Clear the map
  
  @param shrink if true shrink the map to initial size