listFW
Interface IListFactory

All Known Implementing Classes:
CompositeListFactory

public interface IListFactory

Abstract factory to manufacture IEmptyList and INEList.

Since:
Copyright 2002 - DXN, SBW All rights reserved
Author:
Dung X. Nguyen, Stephen B. Wong

Method Summary
 IMTList makeEmptyList()
          Creates an empty list.
 INEList makeNEList(Object first, IList tail)
          Creates a non-empty list containing a given first and a given rest.
 

Method Detail

makeEmptyList

IMTList makeEmptyList()
Creates an empty list.

Returns:
an IMTList object.

makeNEList

INEList makeNEList(Object first,
                   IList tail)
Creates a non-empty list containing a given first and a given rest.

Parameters:
first - a data object.
tail - != null, the rest of the non-empty list to be manufactured.
Returns:
an INEList object containing first and tail
Throws:
IllegalArgumentException - if tail is null.