All Downloads are FREE. Search and download functionalities are using the official Maven repository.

functionalj.lens.lenses.MathOperators Maven / Gradle / Ivy

There is a newer version: 1.0.17
Show newest version
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);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy