@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }

        if (getClass() != obj.getClass()) {
            return false;
        }
        IntegerSequenceSweep other = (IntegerSequenceSweep) obj;
        if (from != other.from) {
            return false;
        }
        if (param == null) {
            if (other.param != null) {
                return false;
            }
        } else if (!param.equals(other.param)) {
            return false;
        }
        if (step != other.step) {
            return false;
        }
        if (to != other.to) {
            return false;
        }
        return true;
    }