public void invalidate(long newFileSize){
  if (newFileSize < fileSize) {
    fileSize=newFileSize;
    counters.clear();
    blockSize=calcBlockSize(fileSize);
  }
 else   if (newFileSize > fileSize)   compact(newFileSize);
}

public void invalidate ( long newFileSize ) { if ( newFileSize < fileSize ) { fileSize = newFileSize ; counters . clear ( ) ; blockSize = calcBlockSize ( fileSize ) ; } else if ( newFileSize > fileSize ) compact ( newFileSize ) ; }
check if counters and blocksize should be adjusted according to file size .
