com.ibm.commerce.price.utils

Class FormattedMonetaryAmount

  • java.lang.Object
    • com.ibm.commerce.price.utils.FormattedMonetaryAmount


  • public class FormattedMonetaryAmount
    extends java.lang.Object
    Formatted monetary amount.
    • Constructor Summary

      Constructors 
      Constructor and Description
      FormattedMonetaryAmount(java.lang.String prefix, java.lang.String formattedValue, java.lang.String suffix)
      Construct a formatted monetary amount.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getFormattedValue()
      Get the formatted value without the prefix and suffix.
      java.lang.String getPrefix()
      Get the prefix for the formatted unit amount.
      java.lang.String getSuffix()
      Get the suffix for the formatted unit amount.
      java.lang.String toString()
      Return [prefix] formattedValue [suffix].
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FormattedMonetaryAmount

        public FormattedMonetaryAmount(java.lang.String prefix,
                                       java.lang.String formattedValue,
                                       java.lang.String suffix)
        Construct a formatted monetary amount.
        Parameters:
        prefix - the prefix for the formatted amount.
        formattedValue - the formatted value.
        suffix - the suffix for the formatted amount.
    • Method Detail

      • getFormattedValue

        public java.lang.String getFormattedValue()
        Get the formatted value without the prefix and suffix.
        Returns:
        the formatted value.
      • getPrefix

        public java.lang.String getPrefix()
        Get the prefix for the formatted unit amount.
        Returns:
        the prefix.
      • getSuffix

        public java.lang.String getSuffix()
        Get the suffix for the formatted unit amount.
        Returns:
        the suffix.
      • toString

        public java.lang.String toString()
        Return [prefix] formattedValue [suffix].
        Overrides:
        toString in class java.lang.Object
        Returns:
        the full formatted string for the unit amount.