Class MoneyPrintContext


  • public final class MoneyPrintContext
    extends java.lang.Object
    Context used when printing money.

    This class is mutable and intended for use by a single thread. A new instance is created for each parse.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Locale locale
      The locale to print using.
    • Constructor Summary

      Constructors 
      Constructor Description
      MoneyPrintContext​(java.util.Locale locale)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Locale getLocale()
      Gets the locale.
      void setLocale​(java.util.Locale locale)
      Sets the locale.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • locale

        private java.util.Locale locale
        The locale to print using.
    • Constructor Detail

      • MoneyPrintContext

        MoneyPrintContext​(java.util.Locale locale)
        Constructor.
        Parameters:
        locale - the locale, not null
    • Method Detail

      • getLocale

        public java.util.Locale getLocale()
        Gets the locale.
        Returns:
        the locale, never null
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Sets the locale.
        Parameters:
        locale - the locale, not null