private void refreshFields(){
  this.loadThreshold=Math.min(this.buckets.length - 1,(int)(this.buckets.length * this.loadFactor));
  this.mask=this.buckets.length - 1;
}

private void refreshFields ( ) { this . loadThreshold = Math . min ( this . buckets . length - 1 , ( int ) ( this . buckets . length * this . loadFactor ) ) ; this . mask = this . buckets . length - 1 ; }
updates the load threshold and the index mask based on the backing array ' s current size .
