org.bitbucket.gkutiel.booly.ExpGeq Maven / Gradle / Ivy
package org.bitbucket.gkutiel.booly;
public class ExpGeq implements Exp {
private final Exp l;
private final Exp r;
public ExpGeq(final Exp r, final Exp l) {
this.r = r;
this.l = l;
}
@Override public Boolean eval() {
return l.eval().doubleValue() >= r.eval().doubleValue();
}
@Override public String toString() {
return l.toString() + " >= " + r.toString();
}
}