| Modifier and Type | Field and Description |
|---|---|
static ToStringAlgo |
Singleton |
| Modifier | Constructor and Description |
|---|---|
private |
ToStringAlgo() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
emptyCase(MTList host,
java.lang.Object... nu)
Returns "()".
|
java.lang.Object |
nonEmptyCase(NEList host,
java.lang.Object... nu)
Passes "(" + first to the rest of IList and asks for help to complete the computation.
|
public static final ToStringAlgo Singleton
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 IListAlgonu - not usedhost - the NEList that is executing this algorithm