listFW.visitor
Class ToStringHelper
java.lang.Object
listFW.visitor.ToStringHelper
- All Implemented Interfaces:
- IListAlgo<Object,String,String>
class ToStringHelper
- extends Object
- implements IListAlgo<Object,String,String>
Helps ToStringAlgo compute the String representation of the rest of the list.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Singleton
public static final ToStringHelper Singleton
ToStringHelper
private ToStringHelper()
emptyCase
public String emptyCase(IMTList<? extends Object> host,
String... acc)
- Returns the accumulated String + ")".
At end of list: done!
- Specified by:
emptyCase
in interface IListAlgo<Object,String,String>
nonEmptyCase
public String nonEmptyCase(INEList<? extends Object> host,
String... acc)
- Continues accumulating the String representation by appending ", " + first to acc
and recur!
- Specified by:
nonEmptyCase
in interface IListAlgo<Object,String,String>