Module org.eclipse.persistence.core
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 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(Collection<CacheKey> keys)Creates an instance ofCacheKeyinstances enumeration.IdentityMapKeyEnumeration(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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Constructor Detail
-
IdentityMapKeyEnumeration
public IdentityMapKeyEnumeration(Collection<CacheKey> keys)
Creates an instance ofCacheKeyinstances enumeration. Checking of read lock on theCacheKeyinstances is turned on.- Parameters:
keys-CollectionofCacheKeyinstances to be iterated
-
IdentityMapKeyEnumeration
public IdentityMapKeyEnumeration(Collection<CacheKey> keys, boolean shouldCheckReadLocks)
Creates an instance ofCacheKeyinstances enumeration.- Parameters:
keys-CollectionofCacheKeyinstances to be iteratedshouldCheckReadLocks- value oftrueif read lock on theCacheKeyinstances should be checked orfalseotherwise
-
-
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 interfaceEnumeration<CacheKey>- Specified by:
nextElementin classAbstractIdentityMapEnumeration<CacheKey>- Returns:
- the next element of this enumeration
- Throws:
NoSuchElementException- if no more elements exist
-
-