public interface SearchIterator<K,V>
Modifier and Type | Method and Description |
---|---|
V |
next(K key)
Searches "forwards" (in direction of travel) in the iterator for the required key;
if this or any key greater has already been returned by the iterator, the method may
choose to return null, the correct or incorrect output, or fail an assertion.
|
V next(K key)
!hasNext() => next(?) == null
key
- to search forCopyright © 2009- The Apache Software Foundation