O - The pipeline type.public class Pipeline<O>
extends java.lang.Object
Pipeline.| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Consumer<O> |
consumer |
protected java.util.Optional<Pipeline<O>> |
prev |
| Constructor and Description |
|---|
Pipeline()
Constructs an empty pipeline
|
Pipeline(java.util.function.Consumer<O> consumer)
Constructs a pipeline with a given function to act upon an object
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Pipeline<O>> |
apply(T stream)
Sets the given pipeline to be piped after this render stream.
|
java.util.function.Consumer<O> |
build()
Builds the pipeline, concatenating the mutations into one single function.
|
protected java.util.function.Consumer<O> consumer
public Pipeline()
public Pipeline(java.util.function.Consumer<O> consumer)
consumer - The objectpublic <T extends Pipeline<O>> T apply(T stream)
T - The new pipeline type.stream - The stream to apply.public java.util.function.Consumer<O> build()