ix.util.lisp
Class ListCollector

java.lang.Object
  |
  +--ix.util.lisp.ListCollector

public class ListCollector
extends java.lang.Object
implements Collector

A Collector that uses a LList to hold the elements and that provides a number of different ways to add elements.


Inner Class Summary
protected static interface ListCollector.adderFunction
           
 
Field Summary
(package private)  Cons head
           
(package private)  Cons tail
           
 
Constructor Summary
ListCollector()
           
 
Method Summary
 void addElement(java.lang.Object e)
           
 void appendList(LList l)
           
 void concList(LList l)
           
 LList contents()
           
 Function1 elementAdder()
           
 Function1 elementPusher()
           
 java.util.Enumeration elements()
           
 Function1 listAppender()
           
 Function1 listConcer()
           
 void pushElement(java.lang.Object e)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

head

Cons head

tail

Cons tail
Constructor Detail

ListCollector

public ListCollector()
Method Detail

addElement

public void addElement(java.lang.Object e)
Specified by:
addElement in interface Collector

pushElement

public void pushElement(java.lang.Object e)

elements

public java.util.Enumeration elements()
Specified by:
elements in interface Collector

contents

public LList contents()

concList

public void concList(LList l)

appendList

public void appendList(LList l)

elementAdder

public Function1 elementAdder()

elementPusher

public Function1 elementPusher()

listAppender

public Function1 listAppender()

listConcer

public Function1 listConcer()