Class StringUtil.ToCSV<O>
java.lang.Object
org.nuiton.util.StringUtil.ToCSV<O>
- Type Parameters:
O- type of object manipulated
- All Implemented Interfaces:
StringUtil.ToString<O>
- Enclosing class:
StringUtil
Used to build csv file using
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.- Author:
- Benjamin Poussin - poussin@codelutin.com, Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStringValue(O o) UseObject.toString()method by default Must be override to use other methods to get string value.Convert an object o in a string.
-
Field Details
-
csvSeparator
-
-
Constructor Details
-
ToCSV
-
-
Method Details
-
toString
Description copied from interface:StringUtil.ToStringConvert an object o in a string.- Specified by:
toStringin interfaceStringUtil.ToString<O>- Parameters:
o- to convert- Returns:
- the string for this object o
-
getStringValue
UseObject.toString()method by default Must be override to use other methods to get string value.- Parameters:
o- to convert- Returns:
- String value
-