Interface AsyncIterator<V>

Type Parameters:
V - value type

public interface AsyncIterator<V>
Asynchronous iterator
Author:
Nikita Koksharov
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns true if more elements are available.
    Returns next element or NoSuchElementException if no more elements available.
  • Method Details

    • hasNext

      Returns true if more elements are available.

      NOTE: each invocation returns a new instance of CompletionStage

      Returns:
      true if more elements are available, otherwise false
    • next

      Returns next element or NoSuchElementException if no more elements available.

      NOTE: each invocation returns a new instance of CompletionStage

      Returns:
      next element or NoSuchElementException