additional function conversions

This commit is contained in:
Jonathan Shook
2022-07-13 01:47:51 -05:00
parent 0ff3e38a25
commit 2721ac23a9

View File

@@ -55,6 +55,10 @@ import java.util.function.*;
*/
public class NBFunctionConverter {
public static LongFunction<Object> adapt(DoubleToIntFunction f, LongFunction<Integer> i1, Object i2) {
return f::applyAsInt;
}
public static LongUnaryOperator adapt(LongToDoubleFunction f, LongUnaryOperator placeholder) {
return v -> (long) (f.applyAsDouble(v) % Long.MAX_VALUE);
}