Constructor and Description |
---|
AddToAlgo() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
emptyCase(MTList host,
java.lang.Object... inp)
Returns an empty list always
|
java.lang.Object |
nonEmptyCase(NEList host,
java.lang.Object... inp)
Returns a new NEList with the original first added to the given integer parameter, where the rest of the
list is the AddToAlgo applied to the rest of the original 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 IListAlgo
host
- the NEList
that is executing this algorithminp
- a variable number of input parameters that can be used for any purpose.