
com.machinezoo.noexception.optional.DefaultDoubleBinaryOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of noexception Show documentation
Show all versions of noexception Show documentation
Makes exception handling concise and beautiful, yet architecturally clean and flexible.
// Part of NoException: https://noexception.machinezoo.com
package com.machinezoo.noexception.optional;
import java.util.function.*;
import lombok.*;
@RequiredArgsConstructor final class DefaultDoubleBinaryOperator implements DoubleBinaryOperator {
private final OptionalDoubleBinaryOperator inner;
private final double result;
@Override public double applyAsDouble(double left, double right) {
return inner.apply(left, right).orElse(result);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy