public abstract class Pipelines extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipelines.Binary
pipeline.
|
static class |
Pipelines.Ternary
pipeline.
|
static class |
Pipelines.Unary
pipeline.
|
| Constructor and Description |
|---|
Pipelines() |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> BiConsumer<T1,T2> |
pipeline(BiConsumer<T1,T2>... actions)
Creates a pipeline from an array of binary actions.
|
static <T1,T2> BiConsumer<T1,T2> |
pipeline(BiConsumer<T1,T2> consumer)
Creates a pipeline from a binary consumer.
|
static <T1,T2> BiConsumer<T1,T2> |
pipeline(BiConsumer<T1,T2> former,
BiConsumer<T1,T2> latter)
Creates a pipeline from two binary actions.
|
static <T1,T2> BiConsumer<T1,T2> |
pipeline(BiConsumer<T1,T2> first,
BiConsumer<T1,T2> second,
BiConsumer<T1,T2> third)
Creates a pipeline from three binary actions.
|
static <T> Consumer<T> |
pipeline(Consumer<T>... actions)
Creates a pipeline from an array of actions.
|
static <T> Consumer<T> |
pipeline(Consumer<T> consumer)
Creates a pipeline from an consumer.
|
static <T> Consumer<T> |
pipeline(Consumer<T> former,
Consumer<T> latter)
Creates a pipeline from two actions.
|
static <T> Consumer<T> |
pipeline(Consumer<T> first,
Consumer<T> second,
Consumer<T> third)
Creates a pipeline from three actions.
|
static <T1,T2,T3> TriConsumer<T1,T2,T3> |
pipeline(TriConsumer<T1,T2,T3>... actions)
Creates a pipeline from an array of ternary actions.
|
static <T1,T2,T3> TriConsumer<T1,T2,T3> |
pipeline(TriConsumer<T1,T2,T3> consumer)
Creates a pipeline from a ternary consumer.
|
static <T1,T2,T3> TriConsumer<T1,T2,T3> |
pipeline(TriConsumer<T1,T2,T3> former,
TriConsumer<T1,T2,T3> latter)
Creates a pipeline from two ternary actions.
|
static <T1,T2,T3> TriConsumer<T1,T2,T3> |
pipeline(TriConsumer<T1,T2,T3> first,
TriConsumer<T1,T2,T3> second,
TriConsumer<T1,T2,T3> third)
Creates a pipeline from three ternary actions.
|
public static <T> Consumer<T> pipeline(Consumer<T> consumer)
T - the consumer parameter typeconsumer - the consumer to be transformedpublic static <T> Consumer<T> pipeline(Consumer<T> former, Consumer<T> latter)
T - the consumer parameter typeformer - the former consumerlatter - the latter consumerpublic static <T> Consumer<T> pipeline(Consumer<T> first, Consumer<T> second, Consumer<T> third)
T - the consumer parameter typefirst - the first consumersecond - the second consumerthird - the third consumerpublic static <T> Consumer<T> pipeline(Consumer<T>... actions)
T - the consumer parameter typeactions - the array of actions to be transformedpublic static <T1,T2> BiConsumer<T1,T2> pipeline(BiConsumer<T1,T2> consumer)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeconsumer - the consumer to be transformedpublic static <T1,T2> BiConsumer<T1,T2> pipeline(BiConsumer<T1,T2> former, BiConsumer<T1,T2> latter)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeformer - the former consumerlatter - the latter consumerpublic static <T1,T2> BiConsumer<T1,T2> pipeline(BiConsumer<T1,T2> first, BiConsumer<T1,T2> second, BiConsumer<T1,T2> third)
T1 - the consumer first parameter typeT2 - the consumer second parameter typefirst - the first consumersecond - the second consumerthird - the third consumerpublic static <T1,T2> BiConsumer<T1,T2> pipeline(BiConsumer<T1,T2>... actions)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeactions - the array of actions to be transformedpublic static <T1,T2,T3> TriConsumer<T1,T2,T3> pipeline(TriConsumer<T1,T2,T3> consumer)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeT3 - the consumer third parameter typeconsumer - the consumer to be transformedpublic static <T1,T2,T3> TriConsumer<T1,T2,T3> pipeline(TriConsumer<T1,T2,T3> former, TriConsumer<T1,T2,T3> latter)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeT3 - the consumer third parameter typeformer - the former consumerlatter - the latter consumerpublic static <T1,T2,T3> TriConsumer<T1,T2,T3> pipeline(TriConsumer<T1,T2,T3> first, TriConsumer<T1,T2,T3> second, TriConsumer<T1,T2,T3> third)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeT3 - the consumer third parameter typefirst - the first consumersecond - the second consumerthird - the third consumerpublic static <T1,T2,T3> TriConsumer<T1,T2,T3> pipeline(TriConsumer<T1,T2,T3>... actions)
T1 - the consumer first parameter typeT2 - the consumer second parameter typeT3 - the consumer third parameter typeactions - the array of actions to be transformedCopyright © 2017. All rights reserved.