KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > bean > converters > StringConverter


1 package jodd.bean.converters;
2
3 /**
4  * Converts given object to String.
5  */

6 public class StringConverter implements jodd.bean.Converter {
7
8     public Object convert(Object value) {
9         if (value == null) {
10             return (String)null;
11         }
12         return value.toString();
13     }
14 }
15
Popular Tags