com.softicar.platform.common.container.matrix.traits.BooleanMatrixTraits 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.matrix.traits;
import com.softicar.platform.common.container.matrix.IMatrixTraits;
/**
* Default {@link IMatrixTraits} for {@link Boolean}.
*
* The default value is false and adding two boolean values uses the
* boolean OR operation.
*
* @author Alexander Schmidt
* @author Oliver Richers
*/
public class BooleanMatrixTraits implements IMatrixTraits {
@Override
public Boolean getDefaultValue() {
return false;
}
@Override
public Boolean plus(Boolean q1, Boolean q2) {
return q1 || q2;
}
}