Implement equals for Equation
This commit is contained in:
parent
95560e12b7
commit
2aeb396b53
@ -59,7 +59,14 @@ public class Equation extends FunctionOperator {
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object o) {
|
||||
// TODO Auto-generated method stub
|
||||
if (o instanceof Equation) {
|
||||
final FunctionOperator f = (FunctionOperator) o;
|
||||
if (parameter1.equals(f.getParameter1()) && parameter2.equals(f.getParameter2())) {
|
||||
return true;
|
||||
} else if (parameter1.equals(f.getParameter2()) && parameter2.equals(f.getParameter1())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user