Package com.cumulocity.model
Class DateConverter
- java.lang.Object
-
- com.cumulocity.model.DateConverter
-
- All Implemented Interfaces:
org.svenson.converter.TypeConverter
@Deprecated public class DateConverter extends Object implements org.svenson.converter.TypeConverter
Deprecated.Provides methods to convert Date to/from String, so that it can be used as JSON object where required.
-
-
Constructor Summary
Constructors Constructor Description DateConverter()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Stringdate2String(Date in)Deprecated.ObjectfromJSON(Object in)Deprecated.static Datestring2Date(String in)Deprecated.ObjecttoJSON(Object in)Deprecated.
-
-
-
Method Detail
-
fromJSON
public Object fromJSON(Object in)
Deprecated.- Specified by:
fromJSONin interfaceorg.svenson.converter.TypeConverter
-
string2Date
@Deprecated public static Date string2Date(String in)
Deprecated.Convert a String into a date usingISODateTimeFormat;- Parameters:
in-- Returns:
-
toJSON
public Object toJSON(Object in)
Deprecated.- Specified by:
toJSONin interfaceorg.svenson.converter.TypeConverter
-
date2String
@Deprecated public static String date2String(Date in)
Deprecated.Return a String representation of the given Date.- Parameters:
in-- Returns:
-
-