Class IdentityMapKeyEnumeration
- java.lang.Object
-
- org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration<CacheKey>
-
- org.eclipse.persistence.internal.identitymaps.IdentityMapKeyEnumeration
-
- All Implemented Interfaces:
Enumeration<CacheKey>
public class IdentityMapKeyEnumeration extends AbstractIdentityMapEnumeration<CacheKey>
Allows to iterate overCacheKey
instances stored in theIdentityMap
.
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration
cacheKeysIterator, nextKey, shouldCheckReadLocks
-
-
Constructor Summary
Constructors Constructor Description IdentityMapKeyEnumeration(Collection<CacheKey> keys)
Creates an instance ofCacheKey
instances enumeration.IdentityMapKeyEnumeration(Collection<CacheKey> keys, boolean shouldCheckReadLocks)
Creates an instance ofCacheKey
instances enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheKey
nextElement()
Get next element ofCacheKey
enumeration 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(Collection<CacheKey> keys)
Creates an instance ofCacheKey
instances enumeration. Checking of read lock on theCacheKey
instances is turned on.- Parameters:
keys
-Collection
ofCacheKey
instances to be iterated
-
IdentityMapKeyEnumeration
public IdentityMapKeyEnumeration(Collection<CacheKey> keys, boolean shouldCheckReadLocks)
Creates an instance ofCacheKey
instances enumeration.- Parameters:
keys
-Collection
ofCacheKey
instances to be iteratedshouldCheckReadLocks
- value oftrue
if read lock on theCacheKey
instances should be checked orfalse
otherwise
-
-
Method Detail
-
nextElement
public CacheKey nextElement()
Get next element ofCacheKey
enumeration if this enumeration object has at least one more element to provide.- Specified by:
nextElement
in interfaceEnumeration<CacheKey>
- Specified by:
nextElement
in classAbstractIdentityMapEnumeration<CacheKey>
- Returns:
- the next element of this enumeration
- Throws:
NoSuchElementException
- if no more elements exist
-
-