public class SimpleFormatter extends java.lang.Object implements InvoiceFormatter
| Modifier and Type | Field and Description |
|---|---|
private double |
total |
| Constructor and Description |
|---|
SimpleFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatFooter()
Formats the footer of the invoice.
|
java.lang.String |
formatHeader()
Formats the header of the invoice.
|
java.lang.String |
formatLineItem(LineItem item)
Formats a line item of the invoice.
|
private double total
public SimpleFormatter()
public java.lang.String formatHeader()
InvoiceFormatterformatHeader in interface InvoiceFormatterpublic java.lang.String formatLineItem(LineItem item)
InvoiceFormatterformatLineItem in interface InvoiceFormatterpublic java.lang.String formatFooter()
InvoiceFormatterformatFooter in interface InvoiceFormatter