com.bpodgursky.jbool_expressions.Expression Maven / Gradle / Ivy
package com.bpodgursky.jbool_expressions;
import com.bpodgursky.jbool_expressions.rules.Rule;
import java.util.List;
public abstract class Expression implements Comparable {
@Override
public int compareTo(Expression o) {
return toString().compareTo(o.toString());
}
@Override
public boolean equals(Object o){
return o instanceof Expression && equals((Expression) o);
}
@Override
public int hashCode(){
return toString().hashCode();
}
public abstract Expression apply(List> rules);
public abstract boolean equals(Expression expr);
public abstract String getExprType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy