examplecalculator.objectmodel.ElementSign Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of GradleProject.Calculate Show documentation
Show all versions of GradleProject.Calculate Show documentation
Project to ease pain of test automation
The newest version!
package examplecalculator.objectmodel;
import java.util.function.BiFunction;
import static examplecalculator.objectmodel.Element.TypeElement.SIGN;
import static examplecalculator.function.ActionFunction.getMathAction;
public final class ElementSign implements Element {
private String element;
private BiFunction value;
public ElementSign(String element) {
this.element = element;
this.value = getMathAction(element);
}
@Override
public BiFunction getValue() {
return value;
}
@Override
public String getElement() {
return element;
}
@Override
public void setValue(BiFunction value) {
this.value = value;
}
@Override
public void setElement(String element) {
this.element = element;
}
@Override
public TypeElement getTypeElement() {
return SIGN;
}
}