Class IdentityMapKeyEnumeration
- java.lang.Object
-
- org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration<CacheKey>
-
- org.eclipse.persistence.internal.identitymaps.IdentityMapKeyEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<CacheKey>
public class IdentityMapKeyEnumeration extends AbstractIdentityMapEnumeration<CacheKey>
Allows to iterate overCacheKeyinstances stored in theIdentityMap.
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration
cacheKeysIterator, nextKey, shouldCheckReadLocks
-
-
Constructor Summary
Constructors Constructor Description IdentityMapKeyEnumeration(java.util.Collection<CacheKey> keys)Creates an instance ofCacheKeyinstances enumeration.IdentityMapKeyEnumeration(java.util.Collection<CacheKey> keys, boolean shouldCheckReadLocks)Creates an instance ofCacheKeyinstances enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheKeynextElement()Get next element ofCacheKeyenumeration if this enumeration object has at least one more element to provide.-
Methods inherited from class org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration
getNextElement, hasMoreElements
-
-
-
-
Constructor Detail
-
IdentityMapKeyEnumeration
public IdentityMapKeyEnumeration(java.util.Collection<CacheKey> keys)
Creates an instance ofCacheKeyinstances enumeration. Checking of read lock on theCacheKeyinstances is turned on.- Parameters:
keys-CollectionofCacheKeyinstances to be iterated
-
-
Method Detail
-
nextElement
public CacheKey nextElement()
Get next element ofCacheKeyenumeration if this enumeration object has at least one more element to provide.- Specified by:
nextElementin interfacejava.util.Enumeration<CacheKey>- Specified by:
nextElementin classAbstractIdentityMapEnumeration<CacheKey>- Returns:
- the next element of this enumeration
- Throws:
java.util.NoSuchElementException- if no more elements exist
-
-