listFW.visitor
Class SumNumList

java.lang.Object
  extended by listFW.visitor.SumNumList
All Implemented Interfaces:
IListAlgo<Number,Number,Object>

public class SumNumList
extends Object
implements IListAlgo<Number,Number,Object>

Sums a list of Numbers, including lists of any sub-types.


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

Constructor Detail

SumNumList

public SumNumList()
Method Detail

emptyCase

public Number emptyCase(IMTList<? extends Number> host,
                        Object... inp)
Specified by:
emptyCase in interface IListAlgo<Number,Number,Object>

nonEmptyCase

public Number nonEmptyCase(INEList<? extends Number> host,
                           Object... inp)
Specified by:
nonEmptyCase in interface IListAlgo<Number,Number,Object>