listFW.visitor
Class SumIntValList

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

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

Sums a list of Numbers, but only the integer part of the values. A test to see if the methods could be declared to return a subclass of the paramaterized type.


Constructor Summary
SumIntValList()
           
 
Method Summary
 Integer emptyCase(IMTList<? extends Number> host, Object... inp)
           
 Integer 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

SumIntValList

public SumIntValList()
Method Detail

emptyCase

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

nonEmptyCase

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