functionalj.lens.lenses.MathOperators Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functionalj-core Show documentation
Show all versions of functionalj-core Show documentation
The module for FunctionalJ Core.
package functionalj.lens.lenses;
import java.math.BigDecimal;
import java.math.BigInteger;
import functionalj.tuple.Tuple2;
public interface MathOperators {
public NUMBER zero();
public NUMBER one();
public NUMBER minusOne();
public Integer asInteger(NUMBER number);
public Long asLong(NUMBER number);
public Double asDouble(NUMBER number);
public BigInteger asBigInteger(NUMBER number);
public BigDecimal asBigDecimal(NUMBER number);
public NUMBER add(NUMBER number1, NUMBER number2);
public NUMBER subtract(NUMBER number1, NUMBER number2);
public NUMBER multiply(NUMBER number1, NUMBER number2);
public NUMBER divide(NUMBER number1, NUMBER number2);
public NUMBER remainder(NUMBER number1, NUMBER number2);
public Tuple2 divideAndRemainder(NUMBER number, NUMBER divisor);
public NUMBER pow(NUMBER number, NUMBER n);
public NUMBER abs(NUMBER number);
public NUMBER negate(NUMBER number);
public NUMBER signum(NUMBER number);
public NUMBER min(NUMBER number1, NUMBER number2);
public NUMBER max(NUMBER number1, NUMBER number2);
}