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 String
date2String(Date in)
Deprecated.Object
fromJSON(Object in)
Deprecated.static Date
string2Date(String in)
Deprecated.Object
toJSON(Object in)
Deprecated.
-
-
-
Method Detail
-
fromJSON
public Object fromJSON(Object in)
Deprecated.- Specified by:
fromJSON
in 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:
toJSON
in interfaceorg.svenson.converter.TypeConverter
-
date2String
@Deprecated public static String date2String(Date in)
Deprecated.Return a String representation of the given Date.- Parameters:
in
-- Returns:
-
-