Class IdentityMapEnumeration

  • All Implemented Interfaces:
    java.util.Enumeration<java.lang.Object>

    public class IdentityMapEnumeration
    extends AbstractIdentityMapEnumeration<java.lang.Object>
    Allows to iterate over Object instances stored in CacheKey instances in the IdentityMap.
    • Constructor Detail

      • IdentityMapEnumeration

        public IdentityMapEnumeration​(java.util.Collection<CacheKey> keys)
        Creates an instance of CacheKey instances enumeration. Checking of read lock on the CacheKey instances is turned on.
        Parameters:
        keys - Collection of CacheKey instances to be iterated
    • Method Detail

      • nextElement

        public java.lang.Object nextElement()
        Get next CacheKey.getObject() element of CacheKey enumeration if this enumeration object has at least one more element to provide.
        Specified by:
        nextElement in interface java.util.Enumeration<java.lang.Object>
        Specified by:
        nextElement in class AbstractIdentityMapEnumeration<java.lang.Object>
        Returns:
        the next CacheKey.getObject() element of this enumeration
        Throws:
        java.util.NoSuchElementException - if no more elements exist