Parsing Engine

danbikel.util
Class FixedSizeListFactory

java.lang.Object
  extended by danbikel.util.FixedSizeListFactory

public class FixedSizeListFactory
extends Object

A factory for FixedSizeList instances.

See Also:
FixedSizeSingletonList, FixedSizeArrayList

Method Summary
static FixedSizeList newList(Collection c)
          Returns a new FixedSizeList instance whose elements will be that of the specified collection.
static FixedSizeList newList(int size)
          Returns a new FixedSizeList instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newList

public static FixedSizeList newList(int size)
Returns a new FixedSizeList instance.

Parameters:
size - the size of the new list
Returns:
a new FixedSizeList instance

newList

public static FixedSizeList newList(Collection c)
Returns a new FixedSizeList instance whose elements will be that of the specified collection.

Parameters:
c - the collection whose elements are to be included in the fixed-size list created by this method
Returns:
a new FixedSizeList instance whose elements will be that of the specified collection

Parsing Engine

Author: Dan Bikel.