void (int newCapacity) { Object[] oldSet = this.key; int oldSize = mySet.size(); super.rehash(newCapacity); for (int i = 0; i < oldSize - 1; i++) { int oldIndex = idToIndex[i]; CharSequence oldString = (CharSequence)oldSet[oldIndex]; int newIndex = index(oldString); assert newIndex != -1; idToIndex[i] = newIndex; } }