KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > concurrent > LinkedNode


1 /*
2   File: LinkedNode.java
3
4   Originally written by Doug Lea and released into the public domain.
5   This may be used for any purposes whatsoever without acknowledgment.
6   Thanks for the assistance and support of Sun Microsystems Labs,
7   and everyone contributing, testing, and using this code.
8
9   History:
10   Date Who What
11   11Jun1998 dl Create public version
12   25may2000 dl Change class access to public
13   26nov2001 dl Added no-arg constructor, all public access.
14 */

15
16 package org.logicalcobwebs.concurrent;
17
18 /** A standard linked list node used in various queue classes **/
19 public class LinkedNode {
20     public Object JavaDoc value;
21     public LinkedNode next;
22
23     public LinkedNode() {
24     }
25
26     public LinkedNode(Object JavaDoc x) {
27         value = x;
28     }
29
30     public LinkedNode(Object JavaDoc x, LinkedNode n) {
31         value = x;
32         next = n;
33     }
34 }
35
Popular Tags