T - former formal parameter type of the given functionU - latter formal parameter type of the given functionR - return type of the given binary functionpublic class Flipper<T,U,R> extends Object implements BiFunction<T,U,R>
| Constructor and Description |
|---|
Flipper(BiFunction<U,T,R> function) |
| Modifier and Type | Method and Description |
|---|---|
R |
apply(T former,
U latter)
Performs on the nested function swapping former and latter formal
parameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic Flipper(BiFunction<U,T,R> function)
public R apply(T former, U latter)
apply in interface BiFunction<T,U,R>former - the former formal parameter used as latter in the nested
functionlatter - the latter formal parameter used as former in the nested
functionCopyright © 2017. All rights reserved.