IListFactory.java
Created with JBuilder
package listFW;

/**
 * Abstract factory to manufacture IEmptyList and INEList.
 * @author Dung X. Nguyen
 * @author Stephen B. Wong
 * @since Copyright 2002 - DXN, SBW All rights reserved
 */
public interface IListFactory {
    /**
     * Creates an empty list.
     * @return an IEmptyList object.
     */
    public abstract IEmptyList makeEmptyList();


    /**
     * Creates a non-empty list containing a given first and a given rest.
     * @param first a data object.
     * @param tail the rest of the non-empty list to be manufactured.
     * @return an INEList object containing first and tail
     */
    public abstract INEList makeNEList(Object first, IList tail);
}

IListFactory.java
Created with JBuilder