de.tsl2.nano.cursus.effectus.IncEffectus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.cursus Show documentation
Show all versions of tsl2.nano.cursus Show documentation
repeatable course/process (delta-processing-engine, event sourcing)
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