F - the "from" or source typeT - the "to" or target typepublic interface BidiFunction<F,T> extends java.util.function.Function<F,T>
Function that is able to transform objects
back into their original value and/or format.| Modifier and Type | Method and Description |
|---|---|
F |
applyReverse(T source)
Transforms a give (transformed object) back into the source value and/or
format.
|
default BidiFunction<T,F> |
invert()
Returns a new
BidiFunction that transforms in exactly the
different directions. |
static <F,T> BidiFunction<F,T> |
of(java.util.function.Function<F,T> forwardFunction,
java.util.function.Function<T,F> backwardFunction)
Creates a new
BidiFunction from two given Functions (which
should perform contrary operations). |
andThen, apply, compose, identityF applyReverse(T source)
source - the source object to be transformed backdefault BidiFunction<T,F> invert()
BidiFunction that transforms in exactly the
different directions.BidiFunctionstatic <F,T> BidiFunction<F,T> of(java.util.function.Function<F,T> forwardFunction, java.util.function.Function<T,F> backwardFunction)
BidiFunction from two given Functions (which
should perform contrary operations).F - the "from" or source typeT - the "to" or target typeforwardFunction - the "forward" FunctionbackwardFunction - the "backward" Function which should perform the
contrary operation to the "forward" oneBidiFunctionCopyright © 2017. All rights reserved.