Class IdentityMapKeyEnumeration

    • Constructor Detail

      • IdentityMapKeyEnumeration

        public IdentityMapKeyEnumeration​(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
      • IdentityMapKeyEnumeration

        public IdentityMapKeyEnumeration​(java.util.Collection<CacheKey> keys,
                                         boolean shouldCheckReadLocks)
        Creates an instance of CacheKey instances enumeration.
        Parameters:
        keys - Collection of CacheKey instances to be iterated
        shouldCheckReadLocks - value of true if read lock on the CacheKey instances should be checked or false otherwise
    • Method Detail

      • nextElement

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