| Constructor and Description |
|---|
SumRevAlgo() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
emptyCase(MTList host,
java.lang.Object... nu)
Returns zero always.
|
java.lang.Object |
nonEmptyCase(NEList host,
java.lang.Object... nu)
Returns first plus the sum of the rest of the list.
|
public java.lang.Object emptyCase(MTList host, java.lang.Object... nu)
public java.lang.Object nonEmptyCase(NEList host, java.lang.Object... nu)
nonEmptyCase in interface IListAlgohost - the NEList that is executing this algorithmnu - a variable number of input parameters that can be used for any purpose.