Class LinkList

Class LinkList

Object
   |
   +----LinkList

public class LinkList
extends Object
A simple one-directional external linked list class.


Constructor Index

 o LinkList(Object)

Method Index

 o cons(Object)
Create a new list node; insert it at the head of the list.
 o rest()
The remainder of the list
 o swapValues(LinkList, LinkList)
Swap the values of a and b.
 o value()
The object owned by the list node

Constructors

 o LinkList
public LinkList(Object obj)

Methods

 o cons
public LinkList cons(Object obj)
Create a new list node; insert it at the head of the list. Return the list.

 o rest
public LinkList rest()
The remainder of the list

 o swapValues
public static void swapValues(LinkList a,
                              LinkList b)
Swap the values of a and b.

 o value
public java.lang.Object value()
The object owned by the list node