listFW.visitor
Class SumIntList_Fwd
java.lang.Object
listFW.visitor.SumIntList_Fwd
- All Implemented Interfaces:
- IListAlgo<Integer,Integer,Object>
public class SumIntList_Fwd
- extends Object
- implements IListAlgo<Integer,Integer,Object>
Sums a IList using a forward accumulation algorithm.
Demonstrates that passing a non-parameterized value through a varargs is no problem.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
helper
private IListAlgo<Integer,Integer,Integer> helper
SumIntList_Fwd
public SumIntList_Fwd()
emptyCase
public Integer emptyCase(IMTList<? extends Integer> host,
Object... inp)
- Specified by:
emptyCase
in interface IListAlgo<Integer,Integer,Object>
nonEmptyCase
public Integer nonEmptyCase(INEList<? extends Integer> host,
Object... inp)
- Specified by:
nonEmptyCase
in interface IListAlgo<Integer,Integer,Object>