Class KeyValueIteratorFacade<K,​V>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<KeyValue<K,​V>>, KeyValueIterator<K,​V>

    public class KeyValueIteratorFacade<K,​V>
    extends java.lang.Object
    implements KeyValueIterator<K,​V>
    • Method Detail

      • hasNext

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

        public K peekNextKey()
        Description copied from interface: KeyValueIterator
        Peek at the next key without advancing the iterator
        Specified by:
        peekNextKey in interface KeyValueIterator<K,​V>
        Returns:
        the key of the next value that would be returned from the next call to next
      • next

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

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface KeyValueIterator<K,​V>