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>
public class IdentityMapEnumeration extends AbstractIdentityMapEnumeration<Object>
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration
cacheKeysIterator, nextKey, shouldCheckReadLocks
-
-
Constructor Summary
Constructors Constructor Description IdentityMapEnumeration(Collection<CacheKey> keys)Creates an instance ofCacheKeyinstances enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectnextElement()Get nextCacheKey.getObject()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
-
IdentityMapEnumeration
public IdentityMapEnumeration(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 Object nextElement()
Get nextCacheKey.getObject()element ofCacheKeyenumeration if this enumeration object has at least one more element to provide.- Specified by:
nextElementin interfaceEnumeration<Object>- Specified by:
nextElementin classAbstractIdentityMapEnumeration<Object>- Returns:
- the next
CacheKey.getObject()element of this enumeration - Throws:
NoSuchElementException- if no more elements exist
-
-