Algorithm
Development Kit 1.0

algs.model.list
Class Node<E>

java.lang.Object
  extended by algs.model.list.Node<E>
Type Parameters:
E - underlying parameterization of node

public class Node<E>
extends java.lang.Object

Node in a singly-linked list.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman

Constructor Summary
Node(E e)
          Node constructed with value.
 
Method Summary
 Node<E> next()
          Return the next one in the list.
 E value()
          Return the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node(E e)
Node constructed with value.

Parameters:
e - value to store with node.
Method Detail

value

public E value()
Return the value.


next

public Node<E> next()
Return the next one in the list.


Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.