net.sf.seaf.util.convert.simple
Class ConverterToString

java.lang.Object
  extended by net.sf.seaf.util.convert.simple.ConverterToString

public class ConverterToString
extends Object

Converter of any Object to String.


Constructor Summary
ConverterToString()
           
 
Method Summary
static String convert(Object o)
          Converts an Object to String value, keeping null as null.
static String convert(Object o, TemporalType type)
          Converts an Object of a temporal type to String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterToString

public ConverterToString()
Method Detail

convert

public static String convert(Object o)
Converts an Object to String value, keeping null as null.

Parameters:
o - Object to be converted
Returns:
String The String value of the object

convert

public static String convert(Object o,
                             TemporalType type)
Converts an Object of a temporal type to String value.

Keeps null as null.

Parameters:
o - Object to be converted
type - The type of the object
Returns:
String The String value of the object


Copyright © 2008-2012 SEAF. All Rights Reserved.