![JAR search and dependency download from the Maven repository](/logo.png)
org.unlaxer.sample.calc.CalculateContext Maven / Gradle / Ivy
package org.unlaxer.sample.calc;
import java.math.RoundingMode;
public class CalculateContext{
public enum Angle{
RADIAN,DEGREE
}
public final int scale;
public final RoundingMode roundingMode;
public final Angle angle;
public CalculateContext(int scale, RoundingMode roundingMode , Angle angle) {
super();
this.scale = scale;
this.roundingMode = roundingMode;
this.angle = angle;
}
public CalculateContext() {
this(10,RoundingMode.HALF_UP , Angle.DEGREE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy