@FunctionalInterface public interface Function2<A,B,R> extends BiFunction<A,B,R>
| Modifier and Type | Method and Description |
|---|---|
default R |
apply(A a,
B b)
The class that takes a consumer as an argument uses this convenience method so that it
doesn't have to worry about checked exceptions either.
|
R |
applyEx(A a,
B b)
Implement this one method and you don't have to worry about checked exceptions.
|
static <A,B,Z> Function2<A,B,Z> |
memoize(Function2<A,B,Z> f)
Use only on pure functions with no side effects.
|
andThenR applyEx(A a, B b) throws Exception
Exceptiondefault R apply(A a, B b)
apply in interface BiFunction<A,B,R>static <A,B,Z> Function2<A,B,Z> memoize(Function2<A,B,Z> f)
Copyright © 2017. All rights reserved.