Interface CommercePriceFormatter
public interface CommercePriceFormatter
-
Method Summary
Modifier and TypeMethodDescriptionformat(CommerceCurrency commerceCurrency, boolean includeSymbol, Locale locale, BigDecimal price) format(BigDecimal price, Locale locale) formatAsRelative(CommerceCurrency commerceCurrency, boolean includeSymbol, Locale locale, BigDecimal price) parse(jakarta.portlet.ActionRequest actionRequest, boolean allowNegativeValue, String className, String param)
-
Method Details
-
format
String format(BigDecimal price, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
format
String format(CommerceCurrency commerceCurrency, boolean includeSymbol, Locale locale, BigDecimal price) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
formatAsRelative
String formatAsRelative(CommerceCurrency commerceCurrency, boolean includeSymbol, Locale locale, BigDecimal price) -
parse
BigDecimal parse(jakarta.portlet.ActionRequest actionRequest, boolean allowNegativeValue, String className, String param) throws Exception - Throws:
Exception
-
parse
String parse(boolean allowNegativeValue, String className, String price, Locale locale) throws Exception - Throws:
Exception
-