All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redhat.lightblue.assoc.ep.StepResult Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
package com.redhat.lightblue.assoc.ep;

import java.util.stream.Stream;

/**
 * The result type returned from steps. Contains stream() to return the result
 * stream.
 */
public interface StepResult {

    public static StepResult EMPTY = new StepResult() {
        @Override
        public Stream stream() {
            return Stream.empty();
        }
    };

    /**
     * Returns a stream of results. Once the stream processing is complete,
     * stream is closed, and should not be used. The caller can call stream()
     * again to get a new stream.
     */
    Stream stream();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy