Class ZonedDateTimeValueFormat
java.lang.Object
com.aquima.interactions.communication.impl.ZonedDateTimeValueFormat
- All Implemented Interfaces:
IValueFormat
,IValueMask
,Serializable
Special format for zoned datetimes it can parse "yyyy-MM-ddTHH:mm:ss.SSS[Z]", but when formatting the format
"yyyy-MM-ddTHH:mm:ss" is used (the milliseconds are left out). This is done for backwards compatible behavior.
- Since:
- 8.4.5
- Author:
- d.roest
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(IPrimitiveValue primitiveValue) This method formats the provided value to a string.getName()
This method returns the name of the value format.static ZonedDateTimeValueFormat
This method parses the string to a primitive value.
-
Constructor Details
-
ZonedDateTimeValueFormat
-
-
Method Details
-
ISO_FORMATTER
-
getName
Description copied from interface:IValueMask
This method returns the name of the value format.- Specified by:
getName
in interfaceIValueMask
- Returns:
- the name of the value format.
-
format
Description copied from interface:IValueMask
This method formats the provided value to a string.- Specified by:
format
in interfaceIValueMask
- Parameters:
primitiveValue
- The value that should be converted to a string.- Returns:
- String representation of the primitive value.
-
parse
Description copied from interface:IValueFormat
This method parses the string to a primitive value.- Specified by:
parse
in interfaceIValueFormat
- Parameters:
str
- The string that should be parsed.- Returns:
- The primitive value for the string.
-