openlist
Class OpenListBuffer<Type>

java.lang.Object
  extended by openlist.OpenListBuffer<Type>

public class OpenListBuffer<Type>
extends java.lang.Object

An OpenListBuffer is analogous to a StringBuffer. Similar to a String, an OpenList is ideally regarded as immutable. An OpenListBuffer creates an OpenList after a series of append calls.


Field Summary
private  OpenList<Type> buffer
           
 
Constructor Summary
OpenListBuffer()
          Create an empty OpenListBuffer.
 
Method Summary
 void append(Type item)
          Append one item to an OpenListBuffer.
 OpenList<Type> toOpenList()
          Return the OpenList constructed thus far.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

private OpenList<Type> buffer
Constructor Detail

OpenListBuffer

public OpenListBuffer()
Create an empty OpenListBuffer.

Method Detail

append

public void append(Type item)
Append one item to an OpenListBuffer.

Parameters:
item - the item to be appended

toOpenList

public OpenList<Type> toOpenList()
Return the OpenList constructed thus far.

Returns:
the OpenList constructed thus far