com.caucho.util
Class Slist

java.lang.Object
  extended by com.caucho.util.Slist

public class Slist
extends java.lang.Object

Cons-cell slist of objects


Field Summary
 java.lang.Object first
           
 Slist next
           
 
Constructor Summary
Slist(Slist next, java.lang.Object first)
          Create a new cons-cell
 
Method Summary
static Slist append(Slist a, Slist b)
          Destructively append
static Slist copy(Slist slist)
          Copies a slist
static Slist remove(Slist slist, java.lang.Object object)
          Remove if ==
 Slist rest()
           
static Slist reverse(Slist slist)
          Destructively reverse
 java.lang.Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public Slist next

first

public java.lang.Object first
Constructor Detail

Slist

public Slist(Slist next,
             java.lang.Object first)
Create a new cons-cell

Method Detail

rest

public Slist rest()

value

public java.lang.Object value()

copy

public static Slist copy(Slist slist)
Copies a slist


reverse

public static Slist reverse(Slist slist)
Destructively reverse


append

public static Slist append(Slist a,
                           Slist b)
Destructively append


remove

public static Slist remove(Slist slist,
                           java.lang.Object object)
Remove if ==