Module org.eclipse.persistence.core
Class IdentityMapEnumeration
java.lang.Object
org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration<Object>
org.eclipse.persistence.internal.identitymaps.IdentityMapEnumeration
- All Implemented Interfaces:
Enumeration<Object>
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration
cacheKeysIterator, nextKey, shouldCheckReadLocks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet nextCacheKey.getObject()
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
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 Details
-
IdentityMapEnumeration
Creates an instance ofCacheKey
instances enumeration. Checking of read lock on theCacheKey
instances is turned on.- Parameters:
keys
-Collection
ofCacheKey
instances to be iterated
-
-
Method Details
-
nextElement
Get nextCacheKey.getObject()
element ofCacheKey
enumeration if this enumeration object has at least one more element to provide.- Specified by:
nextElement
in interfaceEnumeration<Object>
- Specified by:
nextElement
in classAbstractIdentityMapEnumeration<Object>
- Returns:
- the next
CacheKey.getObject()
element of this enumeration - Throws:
NoSuchElementException
- if no more elements exist
-