Top Description Fields Constructors Methods
org.eclipse.persistence.internal.identitymaps

public Class IdentityMapEnumeration

extends AbstractIdentityMapEnumeration<Object>
Class Inheritance
Imports
java.util.Collection, .NoSuchElementException

Allows to iterate over Object instances stored in CacheKey instances in the IdentityMap.

Field Summary

Inherited from org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration:
cacheKeysIteratornextKeyshouldCheckReadLocks

Constructor Summary

AccessConstructor and Description
public
IdentityMapEnumeration(Collection<CacheKey>
Collection of CacheKey instances to be iterated
keys
)

Creates an instance of CacheKey instances enumeration.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the next CacheKey#getObject() element of this enumeration
nextElement
()

Implements abstract org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration.nextElement.

Implements java.util.Enumeration.nextElement.

Get next CacheKey#getObject() element of CacheKey enumeration if this enumeration object has at least one more element to provide.
Inherited from org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration:
getNextElementhasMoreElements

Constructor Detail

IdentityMapEnumerationback to summary
public IdentityMapEnumeration(Collection<CacheKey> keys)

Creates an instance of CacheKey instances enumeration. Checking of read lock on the CacheKey instances is turned on.

Parameters
keys:Collection<CacheKey>

Collection of CacheKey instances to be iterated

Method Detail

nextElementback to summary
public Object nextElement()

Implements abstract org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration.nextElement.

Implements java.util.Enumeration.nextElement.

Get next CacheKey#getObject() element of CacheKey enumeration if this enumeration object has at least one more element to provide.

Returns:Object

the next CacheKey#getObject() element of this enumeration

Annotations
@Override
Exceptions
NoSuchElementException:
if no more elements exist