KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jruby > util > collections > SinglyLinkedList


1 /*
2  * Created on Sep 21, 2005
3  *
4  * To change the template for this generated file go to
5  * Window - Preferences - Java - Code Generation - Code and Comments
6  */

7 package org.jruby.util.collections;
8
9 public class SinglyLinkedList {
10     Object JavaDoc value;
11     SinglyLinkedList next;
12     
13     public SinglyLinkedList(Object JavaDoc value, SinglyLinkedList next) {
14         this.value = value;
15         this.next = next;
16     }
17     
18     public Object JavaDoc 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