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

de.tsl2.nano.cursus.effectus.IncEffectus Maven / Gradle / Ivy

The newest version!
package de.tsl2.nano.cursus.effectus;

import de.tsl2.nano.cursus.Res;

public class IncEffectus extends Effectus {
	private static final long serialVersionUID = 1L;

	Number incValue;

	public IncEffectus() {
	}

	public IncEffectus(Res res, Number increase) {
		super(res, false);
		this.incValue = increase;
	}

	@Override
	protected Number evaluateNewValue() {
		return (getOld() != null ? getOld().doubleValue() : 0) + incValue.doubleValue();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy