com.softicar.platform.common.container.schedule.coverage.ScheduleCoverageTraits Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.container.schedule.coverage;
import com.softicar.platform.common.container.matrix.IMatrixTraits;
import com.softicar.platform.common.math.arithmetic.IArithmetic;
public class ScheduleCoverageTraits> implements IMatrixTraits> {
private final ScheduleCoverageEntry DEFAULT_VALUE;
private final IArithmetic arithmetic;
public ScheduleCoverageTraits(IArithmetic arithmetic) {
this.arithmetic = arithmetic;
this.DEFAULT_VALUE = new ScheduleCoverageEntry<>(arithmetic);
}
@Override
public ScheduleCoverageEntry getDefaultValue() {
return DEFAULT_VALUE;
}
@Override
public ScheduleCoverageEntry plus(ScheduleCoverageEntry entry1, ScheduleCoverageEntry entry2) {
return new ScheduleCoverageEntry<>(arithmetic, entry1, entry2);
}
}