this.map = map; this.cacheKeysEnum = map.getCacheKeys().elements();
CacheKey key = null; while (cacheKeysEnum.hasMoreElements() && (key == null)) { key = (CacheKey)cacheKeysEnum.nextElement(); } return key;
this.nextKey = getNextCacheKey(); return this.nextKey != null;
if (this.nextKey == null) { throw new NoSuchElementException("IdentityMapKeyEnumeration nextElement"); } // CR#... Must check the read lock to avoid // returning half built objects. this.nextKey.checkReadLock(); return this.nextKey;