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