Class DateTimeFunctionFactory.DateTimeFunctionImpl
java.lang.Object
com.ibm.icu.message2.DateTimeFunctionFactory.DateTimeFunctionImpl
- All Implemented Interfaces:
Function
- Enclosing class:
DateTimeFunctionFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DateFormatprivate final Localeprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDateTimeFunctionImpl(Locale locale, DateFormat df, boolean reportErrors) -
Method Summary
Modifier and TypeMethodDescriptionA method that takes the object to format and returns the i18n-aware formatted placeholder.formatToString(Object toFormat, Map<String, Object> variableOptions) A method that takes the object to format and returns the i18n-aware string representation.
-
Field Details
-
icuFormatter
-
locale
-
reportErrors
private final boolean reportErrors
-
-
Constructor Details
-
DateTimeFunctionImpl
-
-
Method Details
-
format
A method that takes the object to format and returns the i18n-aware formatted placeholder. -
formatToString
A method that takes the object to format and returns the i18n-aware string representation.- Specified by:
formatToStringin interfaceFunction- Parameters:
toFormat- the object to format.variableOptions- options that are not know at build time.- Returns:
- the formatted string.
-