Interface MoneyPrinter

    • Method Detail

      • print

        void print​(MoneyPrintContext context,
                   java.lang.Appendable appendable,
                   BigMoney money)
            throws java.io.IOException
        Prints part of a monetary value to the output appendable.

        The implementation determines what to append, which may be some or all of the data held in the BigMoney.

        The context is not a thread-safe object and a new instance will be created for each print. The context must not be stored in an instance variable or shared with any other threads.

        Parameters:
        context - the context being used, not null
        appendable - the appendable to add to, not null
        money - the money to print, not null
        Throws:
        MoneyFormatException - if there is a problem while printing
        java.io.IOException - if an IO exception occurs