difference(next) {
        var diff = {};
        if (!this.linkedListForStep.equals(next.linkedListForStep)) {
            diff.linkedListForStep = {};
            diff = this.linkedListForStep.difference(next.linkedListForStep, diff);
        }
        if (!this.pointerForStep.equals(next.pointerForStep)) {
            diff.pointerForStep = {};
            diff = this.pointerForStep.difference(next.pointerForStep, diff);
        }
        return diff;
    }
/**
     * calculate the difference between the current step and the next step
     * @param {VisualizationStep} next the next step
     */
calculate the difference between the current step and the next step
@param {VisualizationStep} next the next step
calculate the difference between the current step and the next step @param { VisualizationStep } next the next step
difference(next) {
        var diff = {};
        if (!this.linkedListForStep.equals(next.linkedListForStep)) {
            diff.linkedListForStep = {};
            diff = this.linkedListForStep.difference(next.linkedListForStep, diff);
        }
        if (!this.pointerForStep.equals(next.pointerForStep)) {
            diff.pointerForStep = {};
            diff = this.pointerForStep.difference(next.pointerForStep, diff);
        }
        return diff;
    }
difference ( next ) { var diff = { } ; if ( ! this . linkedListForStep . equals ( next . linkedListForStep ) ) { diff . linkedListForStep = { } ; diff = this . linkedListForStep . difference ( next . linkedListForStep , diff ) ; } if ( ! this . pointerForStep . equals ( next . pointerForStep ) ) { diff . pointerForStep = { } ; diff = this . pointerForStep . difference ( next . pointerForStep , diff ) ; } return diff ; }
calculate the difference between the current step and the next step
 @param {VisualizationStep} next the next step
calculate the difference between the current step and the next step @param { VisualizationStep } next the next step