io.virtdata.api.composers.ComposerForFunction Maven / Gradle / Ivy
package io.virtdata.api.composers;
import io.virtdata.api.FunctionType;
import java.util.function.*;
public class ComposerForFunction implements FunctionComposer> {
private final Function, ?> inner;
public ComposerForFunction(Function, ?> inner) {
this.inner = inner;
}
@Override
public Object getFunctionObject() {
return inner;
}
@Override
@SuppressWarnings("unchecked")
public FunctionComposer andThen(Object outer) {
FunctionType functionType = FunctionType.valueOf(outer);
switch (functionType) {
case long_long:
final Function, Long> f1 =
(Object o) ->
((LongUnaryOperator) outer).applyAsLong(((Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy