Fix RootSquare equality with other RootSquare instances
This commit is contained in:
parent
b65723a2c6
commit
66a04607b3
@ -18,7 +18,7 @@ public class RootSquare extends FunctionOperator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o instanceof Root) {
|
if (o instanceof Root || o instanceof RootSquare) {
|
||||||
final FunctionOperator f = (FunctionOperator) o;
|
final FunctionOperator f = (FunctionOperator) o;
|
||||||
return parameter1.equals(f.getParameter1()) && parameter2.equals(f.getParameter2());
|
return parameter1.equals(f.getParameter1()) && parameter2.equals(f.getParameter2());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user