public WordBuilder < I > truncate ( int truncLen ) { if ( truncLen >= length ) { return this ; } ensureUnlocked ( ) ; for ( int i = truncLen ; i < length ; i ++ ) { array [ i ] = null ; } length = truncLen ; return this ; }
Truncates the contents of the initial storage to the given length .