K
- Type of keysV
- Type of valuespublic interface KeyValueIterator<K,V> extends java.util.Iterator<KeyValue<K,V>>, java.io.Closeable
KeyValue
.
Users need to call its close
method explicitly upon completeness to release resources,
or use try-with-resources statement (available since JDK7) for this Closeable
class.Modifier and Type | Method and Description |
---|---|
void |
close() |
K |
peekNextKey()
Peek at the next key without advancing the iterator
|
void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
K peekNextKey()