net.sf.doolin.tabular.csv.PrimitiveCSVAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doolin-tabular Show documentation
Show all versions of doolin-tabular Show documentation
This Doolin GUI module is an extension that allows writing
tabular data (CSV, Excel).
The newest version!
package net.sf.doolin.tabular.csv;
import org.apache.commons.lang.ObjectUtils;
/**
* Just renders the value by calling the toString()
method on it.
*
* @author Damien Coraboeuf
*/
public class PrimitiveCSVAdapter implements CSVAdapter {
/**
* Just renders the value by calling the toString()
method on
* it.
*
* @see net.sf.doolin.tabular.csv.CSVAdapter#getCSVValue(java.lang.Object)
*/
public String getCSVValue(Object value) {
return ObjectUtils.toString(value, "");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy