listFW
Interface IListFactory<E>
- All Known Implementing Classes:
- CompositeListFactory
public interface IListFactory<E>
Abstract factory to manufacture IEmptyList and INEList.
- Since:
- Copyright 2004 - DXN, SBW All rights reserved
makeEmptyList
IMTList<E> makeEmptyList()
- Creates an empty list.
- Returns:
- an IMTList object.
makeNEList
INEList<E> makeNEList(E first,
IList<? extends E> rest)
- Creates a non-empty list containing a given first and a given rest.
- Parameters:
first
- a data object.rest
- != null, the rest of the non-empty list to be manufactured.
- Returns:
- an INEList object containing first and rest
- Throws:
java.lang.IllegalArgumentException
- if rest is null.