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