de.team33.patterns.serial.charon.Streamable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serial-charon Show documentation
Show all versions of serial-charon Show documentation
Provides an alternative abstraction of Collections
whose access methods are suitable for both recursive and successive serial processing.
package de.team33.patterns.serial.charon;
import java.util.stream.Stream;
/**
* Represents something that may produce a {@link Stream} of elements of a specific type.
*
* @param The element type.
*/
public interface Streamable {
/**
* Returns a sequential {@code Stream} with this {@link Streamable} as its source.
*/
Stream stream();
}