listFW.visitor
Class Append<T>

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

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

Append another list, passed as input[0], at the end of this list.


Field Summary
private  IListFactory<T> _fac
           
 
Constructor Summary
Append(IListFactory<T> fac)
           
 
Method Summary
 IList<T> emptyCase(IMTList<? extends T> host, IList<T>... input)
          Returns the input list.
 IList<T> nonEmptyCase(INEList<? extends T> host, IList<T>... input)
          Returns the appended lists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fac

private IListFactory<T> _fac
Constructor Detail

Append

public Append(IListFactory<T> fac)
Method Detail

emptyCase

public IList<T> emptyCase(IMTList<? extends T> host,
                          IList<T>... input)
Returns the input list.

Specified by:
emptyCase in interface IListAlgo<T,IList<T>,IList<T>>
Parameters:
input - input[0] is the list to append.

nonEmptyCase

public IList<T> nonEmptyCase(INEList<? extends T> host,
                             IList<T>... input)
Returns the appended lists.

Specified by:
nonEmptyCase in interface IListAlgo<T,IList<T>,IList<T>>
Parameters:
input - input[0] is the list to append.