listFW.visitor
Class SumNumList
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SumNumList
public SumNumList()
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>