I have this below interface in Java
public interface DoubleOperator {
double applyAsDouble(double left, double right);
}
And below implementing it using Lambda -
DoubleOperator [] ops = {
(a, b) -> a + b,
(a, b) -> a - b
};
How we can implement this in Apex . Any suggestions. Like using Inferface in Apex