Class DataContainerRemoveIterator<K,​V>

  • All Implemented Interfaces:

    public class DataContainerRemoveIterator<K,​V>
    extends java.lang.Object
    implements java.util.Iterator<CacheEntry<K,​V>>
    This is an iterator that will iterate upon the data container. A cache is also provided to be used when the remove method on the iterator is invoked. Note that this means it will take part of any ongoing transaction if there is one.
    • Constructor Detail

      • DataContainerRemoveIterator

        public DataContainerRemoveIterator​(Cache<K,​V> cache)
      • DataContainerRemoveIterator

        public DataContainerRemoveIterator​(Cache<K,​V> cache,
                                           DataContainer<K,​V> dataContainer)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<K>
      • next

        public CacheEntry<K,​V> next()
        Specified by:
        next in interface java.util.Iterator<K>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<K>