void (int newSize) { final IntObjectCache<T> newCache = new IntObjectCache<>(newSize); final CacheEntry<T>[] cache = myCache; int back = myBack; while (back != 0) { final CacheEntry<T> cacheEntry = cache[back]; newCache.cacheObject(cacheEntry.key, cacheEntry.value); back = cacheEntry.prev; } myTop = newCache.myTop; myBack = newCache.myBack; myCache = newCache.myCache; myHashTable = newCache.myHashTable; myHashTableSize = newCache.myHashTableSize; myCount = newCache.myCount; myFirstFree = newCache.myFirstFree; }