Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public RSNode getNext() {
- RSNode node = this.node;
- if (node == getHead()) {
- this.node = null;
- return null;
- }
- this.node = node.getNext();
- return node;
- }
- public RSNode getPrevious() {
- RSNode node = this.node;
- if (node == getHead()) {
- this.node = null;
- return null;
- }
- this.node = node.getNext();
- return node;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement