O
- type of object manipulatedpublic static class StringUtil.ToCSV<O> extends Object implements StringUtil.ToString<O>
StringUtil.join(Iterable, ToString, String, boolean)
method. This will provide a toString method to convert an object in a
string and escape csv values if needed.Modifier and Type | Field and Description |
---|---|
protected String |
csvSeparator |
Modifier and Type | Method and Description |
---|---|
String |
getStringValue(O o)
Use
Object.toString() method by default
Must be override to use other methods to get string value. |
String |
toString(O o)
Convert an object o in a string.
|
protected String csvSeparator
public ToCSV(String csvSeparator)
public String toString(O o)
StringUtil.ToString
toString
in interface StringUtil.ToString<O>
o
- to convertpublic String getStringValue(O o)
Object.toString()
method by default
Must be override to use other methods to get string value.o
- to convertCopyright © 2004–2020 CodeLutin. All rights reserved.