visualizePointers(current, changeObject) {
        if (changeObject.hasOwnProperty('pointerIndex')) {
            if (changeObject.hasOwnProperty('reference')) {
                if (changeObject.To === null) {
                    this.nullifyPointer(changeObject.pointerIndex);
                } else {
                    var toReference = changeObject.To;
                    var node = current.getLinkedListForStep().getNodeByReference(toReference.toString());
                    var nodeLocation = current.getLinkedListForStep().getNodeLocation(toReference.toString());
                    var NodeIndex = this.JsavLinkedList.getNodeIndexByReference(node.getReference());
                    this.movePointer(changeObject.pointerIndex, NodeIndex, toReference.toString());
                }
            } else {
                var toIndex = changeObject.To;
                var pointerIndex = changeObject.pointerIndex;
                if (toIndex === -1)
                    this.nullifyPointer(pointerIndex);
                else {
                    var node = current.getLinkedListForStep().getNode(toIndex);
                    this.movePointer(pointerIndex, node.getReference(), toIndex);
                }
            }
        } else if (changeObject.hasOwnProperty('addPointers')) {
            this.addNewPointerAndVisualizeIt(changeObject);
        }
    }
/**
     * Visualizes the pointers based on the current visualization step
     * @param {VisualizationStep} current the current visualization step
     * @param {Hash} changeObject Hash table that contains the changes to be applied on pointers
     */
Visualizes the pointers based on the current visualization step
@param {VisualizationStep} current the current visualization step
@param {Hash} changeObject Hash table that contains the changes to be applied on pointers
Visualizes the pointers based on the current visualization step @param { VisualizationStep } current the current visualization step @param { Hash } changeObject Hash table that contains the changes to be applied on pointers
visualizePointers(current, changeObject) {
        if (changeObject.hasOwnProperty('pointerIndex')) {
            if (changeObject.hasOwnProperty('reference')) {
                if (changeObject.To === null) {
                    this.nullifyPointer(changeObject.pointerIndex);
                } else {
                    var toReference = changeObject.To;
                    var node = current.getLinkedListForStep().getNodeByReference(toReference.toString());
                    var nodeLocation = current.getLinkedListForStep().getNodeLocation(toReference.toString());
                    var NodeIndex = this.JsavLinkedList.getNodeIndexByReference(node.getReference());
                    this.movePointer(changeObject.pointerIndex, NodeIndex, toReference.toString());
                }
            } else {
                var toIndex = changeObject.To;
                var pointerIndex = changeObject.pointerIndex;
                if (toIndex === -1)
                    this.nullifyPointer(pointerIndex);
                else {
                    var node = current.getLinkedListForStep().getNode(toIndex);
                    this.movePointer(pointerIndex, node.getReference(), toIndex);
                }
            }
        } else if (changeObject.hasOwnProperty('addPointers')) {
            this.addNewPointerAndVisualizeIt(changeObject);
        }
    }
visualizePointers ( current , changeObject ) { if ( changeObject . hasOwnProperty ( 'pointerIndex' ) ) { if ( changeObject . hasOwnProperty ( 'reference' ) ) { if ( changeObject . To === null ) { this . nullifyPointer ( changeObject . pointerIndex ) ; } else { var toReference = changeObject . To ; var node = current . getLinkedListForStep ( ) . getNodeByReference ( toReference . toString ( ) ) ; var nodeLocation = current . getLinkedListForStep ( ) . getNodeLocation ( toReference . toString ( ) ) ; var NodeIndex = this . JsavLinkedList . getNodeIndexByReference ( node . getReference ( ) ) ; this . movePointer ( changeObject . pointerIndex , NodeIndex , toReference . toString ( ) ) ; } } else { var toIndex = changeObject . To ; var pointerIndex = changeObject . pointerIndex ; if ( toIndex === - 1 ) this . nullifyPointer ( pointerIndex ) ; else { var node = current . getLinkedListForStep ( ) . getNode ( toIndex ) ; this . movePointer ( pointerIndex , node . getReference ( ) , toIndex ) ; } } } else if ( changeObject . hasOwnProperty ( 'addPointers' ) ) { this . addNewPointerAndVisualizeIt ( changeObject ) ; } }
Visualizes the pointers based on the current visualization step
 @param {VisualizationStep} current the current visualization step
 @param {Hash} changeObject Hash table that contains the changes to be applied on pointers
Visualizes the pointers based on the current visualization step @param { VisualizationStep } current the current visualization step @param { Hash } changeObject Hash table that contains the changes to be applied on pointers