Package org.onosproject.store.service
Interface AsyncIterator<T>
-
public interface AsyncIterator<T>
Asynchronous iterator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Boolean>
hasNext()
Returns whether the iterator has a next item.CompletableFuture<T>
next()
Returns the next item in the iterator.
-
-
-
Method Detail
-
hasNext
CompletableFuture<Boolean> hasNext()
Returns whether the iterator has a next item.- Returns:
- whether a next item exists in the iterator
-
next
CompletableFuture<T> next()
Returns the next item in the iterator.- Returns:
- the next item in the iterator
-
-