listFW.visitor
Class SumIntList

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

public class SumIntList
extends Object
implements IListAlgo<Integer,Integer,Object>

Sums a IList using a reverse accumulation (natural recursion) algorithm.


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

Constructor Detail

SumIntList

public SumIntList()
Method Detail

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>