listFW.visitor
Class CopyList3<T>

java.lang.Object
  extended by listFW.visitor.CopyList3<T>
All Implemented Interfaces:
IListAlgo<T,IList<T>,IListFactory<T>>

public class CopyList3<T>
extends java.lang.Object
implements IListAlgo<T,IList<T>,IListFactory<T>>

Copies an IList using the an IListFactory supplied as an input parameter


Constructor Summary
CopyList3()
           
 
Method Summary
 IMTList<T> emptyCase(IMTList<? extends T> host, IListFactory<T>... fac)
           
 INEList<T> nonEmptyCase(INEList<? extends T> host, IListFactory<T>... fac)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyList3

public CopyList3()
Method Detail

emptyCase

public IMTList<T> emptyCase(IMTList<? extends T> host,
                            IListFactory<T>... fac)
Specified by:
emptyCase in interface IListAlgo<T,IList<T>,IListFactory<T>>

nonEmptyCase

public INEList<T> nonEmptyCase(INEList<? extends T> host,
                               IListFactory<T>... fac)
Specified by:
nonEmptyCase in interface IListAlgo<T,IList<T>,IListFactory<T>>