difference(OtherNode, diff, index) {
        var str = null;
        if (this.nodeData !== OtherNode.nodeData)
            str = { nodeIndex: index, data: this.getData(), To: OtherNode.getData() };
        /*if (this.nodeReference !== OtherNode.nodeReference)
            str += '"reference": ' + this.nodeReference + ', "To": ' + OtherNode.nodeReference + '}';*/
        if (this.nodeNext !== OtherNode.nodeNext)
            str = { nodeIndex: index, next: this.getNext(), To: OtherNode.getNext() };
        diff.linkedListForStep.node = JSON.stringify(str);
        return diff;
    }
/**
     * 
     * Calculats the difference between this linkedlist node and the other linkedlist node
     * @param {LinkedListNode} OtherNode The other linked list that will be compared with this linked list
     * @param {Hash} diff Hash table
     * @param {Integer} index the node index
     */
Calculats the difference between this linkedlist node and the other linkedlist node
@param {LinkedListNode} OtherNode The other linked list that will be compared with this linked list
@param {Hash} diff Hash table
@param {Integer} index the node index
Calculats the difference between this linkedlist node and the other linkedlist node @param { LinkedListNode } OtherNode The other linked list that will be compared with this linked list @param { Hash } diff Hash table @param { Integer } index the node index
difference(OtherNode, diff, index) {
        var str = null;
        if (this.nodeData !== OtherNode.nodeData)
            str = { nodeIndex: index, data: this.getData(), To: OtherNode.getData() };
        if (this.nodeNext !== OtherNode.nodeNext)
            str = { nodeIndex: index, next: this.getNext(), To: OtherNode.getNext() };
        diff.linkedListForStep.node = JSON.stringify(str);
        return diff;
    }
difference ( OtherNode , diff , index ) { var str = null ; if ( this . nodeData !== OtherNode . nodeData ) str = { nodeIndex : index , data : this . getData ( ) , To : OtherNode . getData ( ) } ; if ( this . nodeNext !== OtherNode . nodeNext ) str = { nodeIndex : index , next : this . getNext ( ) , To : OtherNode . getNext ( ) } ; diff . linkedListForStep . node = JSON . stringify ( str ) ; return diff ; }
Calculats the difference between this linkedlist node and the other linkedlist node
 @param {LinkedListNode} OtherNode The other linked list that will be compared with this linked list
 @param {Hash} diff Hash table
 @param {Integer} index the node index
Calculats the difference between this linkedlist node and the other linkedlist node @param { LinkedListNode } OtherNode The other linked list that will be compared with this linked list @param { Hash } diff Hash table @param { Integer } index the node index
/*if (this.nodeReference !== OtherNode.nodeReference)
            str += '"reference": ' + this.nodeReference + ', "To": ' + OtherNode.nodeReference + '}';*/