@ 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 ( ) ; }
Clear the map