1 7 package org.jruby.util.collections; 8 9 public class SinglyLinkedList { 10 Object value; 11 SinglyLinkedList next; 12 13 public SinglyLinkedList(Object value, SinglyLinkedList next) { 14 this.value = value; 15 this.next = next; 16 } 17 18 public Object getValue() { 19 return value; 20 } 21 22 public SinglyLinkedList getNext() { 23 return next; 24 } 25 26 public void setNext(SinglyLinkedList next) { 27 this.next = next; 28 } 29 } 30 | Popular Tags |