com.softicar.platform.common.container.matrix.IMatrixTraits 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;
/**
* Interface for matrix traits that specify how the matrix works.
*
* @param
* the value type of the matrix
* @author Oliver Richers
*/
public interface IMatrixTraits {
/**
* Returns the default value, that should be returned by
* {@link IMatrix#getValue} if the value is not set.
*
* @return the default value
*/
V getDefaultValue();
/**
* Returns the sum of the specified values.
*
* @return sum of valueA and valueB
*/
V plus(V valueA, V valueB);
}