private int [ ] newChunk ( ) { if ( defaultValue == 0 ) return new int [ chunkSize ] ; if ( baseChunk == null ) { baseChunk = new int [ chunkSize ] ; Arrays . fill ( baseChunk , defaultValue ) ; } return baseChunk . clone ( ) ; }
todo use pool