コード例 #1
0
 /**
  * sets the next node linked to this node and also updates the previous node of the next to this
  */
 public void setNext(Node next) {
   this.next = next;
   if (next != null) next.prev = this;
 }
コード例 #2
0
 public void addChange(String graphml) {
   Node first = new Node();
   first.val = graphml;
   first.setNext(current);
   this.current = first;
 }