com.ibm.commerce.price.utils
Class FormattedQuantityAmount

java.lang.Object
  |
  +--com.ibm.commerce.price.utils.FormattedUnitAmount
        |
        +--com.ibm.commerce.price.utils.FormattedQuantityAmount

public class FormattedQuantityAmount
extends com.ibm.commerce.price.utils.FormattedUnitAmount

Formatted quantity amount.


Constructor Summary
FormattedQuantityAmount(java.lang.String prefix, java.lang.String formattedValue, java.lang.String suffix)
          Construct a formatted quantity amount.
 
Method Summary
protected  com.ibm.commerce.price.utils.FormattedUnitAmount createNewFormattedUnitAmount(java.lang.String prefix, java.lang.String formattedValue, java.lang.String suffix)
          createNewFormattedUnitAmount method comment.
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedQuantityAmount

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

createNewFormattedUnitAmount

protected com.ibm.commerce.price.utils.FormattedUnitAmount createNewFormattedUnitAmount(java.lang.String prefix,
                                                                                        java.lang.String formattedValue,
                                                                                        java.lang.String suffix)
createNewFormattedUnitAmount method comment.
Overrides:
createNewFormattedUnitAmount in class com.ibm.commerce.price.utils.FormattedUnitAmount
Following copied from class: com.ibm.commerce.price.utils.FormattedUnitAmount
Parameters:
aValue - double
aUnit - java.lang.String
Returns:
UnitAmount

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.