Interface Navigate<T>

  • All Known Subinterfaces:
    Channel

    public interface Navigate<T>
    Implementations support navigating a graph where you can traverse forward and each next returns a List of outputs of type T that can contain 0..n nodes.
    • Method Detail

      • next

        List<T> next()
        Next group of outputs

        Important only invoke this once, as this method do not carry state, and is not intended to be used in a while loop, but used by a if statement instead.

        Returns:
        next group or null if no more outputs
      • hasNext

        boolean hasNext()
        Are there more outputs?

        Important only invoke this once, as this method do not carry state, and is not intended to be used in a while loop, but used by a if statement instead.

        Returns:
        true if more outputs