Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1.     public RSNode getNext() {
  2.         RSNode node = this.node;
  3.  
  4.         if (node == getHead()) {
  5.             this.node = null;
  6.             return null;
  7.         }
  8.         this.node = node.getNext();
  9.  
  10.         return node;
  11.     }
  12.  
  13.     public RSNode getPrevious() {
  14.         RSNode node = this.node;
  15.  
  16.         if (node == getHead()) {
  17.             this.node = null;
  18.             return null;
  19.         }
  20.         this.node = node.getNext();
  21.  
  22.         return node;
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement