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

org.unlaxer.sample.calc.CalculateContext Maven / Gradle / Ivy

There is a newer version: 1.1.26
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy