@Override public boolean compare(Hop that) { if (!(that instanceof AggUnaryOp)) return false; AggUnaryOp that2 = (AggUnaryOp) that; return (_op == that2._op && _direction == that2._direction && _maxNumThreads == that2._maxNumThreads && getInput().get(0) == that2.getInput().get(0)); }