public class FunctionAssembler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionAssembler.LongIdentity |
| Constructor and Description |
|---|
FunctionAssembler() |
| Modifier and Type | Method and Description |
|---|---|
FunctionAssembler |
andThen(Function andThen)
Allows for mapping generic functions into the composed lambda.
|
FunctionAssembler |
andThen(LongFunction andThen)
Only valid after 0 or more LongUnaryOperators, but not after another LongFunction which isn't a LongFunction<Long>.
|
FunctionAssembler |
andThen(LongUnaryOperator andThen)
Valid for any number of calls from the beginning of assembly.
|
FunctionAssembler |
andThen(Object functionObject) |
<T> DataMapper<T> |
getDataMapper() |
LongFunction<?> |
getFunction() |
public FunctionAssembler andThen(Object functionObject)
public FunctionAssembler andThen(LongUnaryOperator andThen)
andThen - a LongUnaryOperatorpublic FunctionAssembler andThen(LongFunction andThen)
andThen - a LongFunctionpublic FunctionAssembler andThen(Function andThen)
Allows for mapping generic functions into the composed lambda. This is not yet type safe, because type erasure.
If this is called after a LongFunction<?> has been added, then the types are presumed to match, and the lamda is coerced via casting.
andThen - Function to add to the outer calling layerpublic LongFunction<?> getFunction()
public <T> DataMapper<T> getDataMapper()
Copyright © 2018. All rights reserved.