Modifier and Type | Field and Description |
---|---|
static ToStringHelper |
Singleton |
Modifier | Constructor and Description |
---|---|
private |
ToStringHelper() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
emptyCase(MTList host,
java.lang.Object... acc)
Returns the accumulated String + ")".
|
java.lang.Object |
nonEmptyCase(NEList host,
java.lang.Object... acc)
Continues accumulating the String representation by appending ", " + first to acc
and recurse!
|
public static final ToStringHelper Singleton
public java.lang.Object emptyCase(MTList host, java.lang.Object... acc)
public java.lang.Object nonEmptyCase(NEList host, java.lang.Object... acc)
nonEmptyCase
in interface IListAlgo
acc
- acc[0] is the accumulated String representation of the preceding list.host
- the NEList
that is executing this algorithm