private void resizeMap ( ) { int [ ] newUnsortedKeys = Arrays . copyOf ( unsortedKeys , unsortedKeys . length * 2 ) ; int [ ] newUnsortedValues = Arrays . copyOf ( unsortedValues , unsortedValues . length * 2 ) ; unsortedKeys = newUnsortedKeys ; unsortedValues = newUnsortedValues ; }
Doubles the size of the unsorted portion of the map .