Package com.adobe.marketing.mobile.xdm
Class Formatters
- java.lang.Object
-
- com.adobe.marketing.mobile.xdm.Formatters
-
public final class Formatters extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringdateToISO8601String(Date timestamp)Deprecated.as of 2.0.0, replaced byTimeUtils.getISO8601UTCDateWithMillisecondsfrom Mobile Corestatic StringdateToShortDateString(Date date)Deprecated.as of 2.0.0, replaced byTimeUtils.getISO8601FullDatefrom Mobile Corestatic List<Map<String,Object>>serializeFromList(List<? extends Property> listProperty)Serialize a list ofPropertyelements to a list of XDM formatted maps.
-
-
-
Method Detail
-
serializeFromList
public static List<Map<String,Object>> serializeFromList(List<? extends Property> listProperty)
Serialize a list ofPropertyelements to a list of XDM formatted maps. CallsProperty.serializeToXdm()on each element in the list.
-
dateToISO8601String
@Deprecated public static String dateToISO8601String(Date timestamp)
Deprecated.as of 2.0.0, replaced byTimeUtils.getISO8601UTCDateWithMillisecondsfrom Mobile CoreFormats aDateto an ISO 8601 date-time string in UTC as defined in RFC 3339, section 5.6 For example, 2017-09-26T15:52:25Z- Parameters:
timestamp- a timestamp- Returns:
timestampformatted to a string in the format of 'yyyy-MM-dd'T'HH:mm:ss'Z'', or an empty string iftimestampis null
-
dateToShortDateString
@Deprecated public static String dateToShortDateString(Date date)
Deprecated.as of 2.0.0, replaced byTimeUtils.getISO8601FullDatefrom Mobile CoreFormats aDateto a full-date string defined in RFC 3339, section 5.6, representing a date without time. For example, 2017-09-26- Parameters:
date- a date- Returns:
dateformatted to a string in the format of 'yyy-MM-dd', or an empty string ifdateis null
-
-