public abstract class StatementTemplate
extends java.lang.Object
Domain:
customerName : String
rentals : List
Invariant:
customerName ≠ null AND |customerName| > 0 AND rentals ≠ null
| Constructor and Description |
|---|
StatementTemplate(java.lang.String customerName,
java.util.List<Rental> rentals)
The constructor for the Statement Template.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Generates a statement.
|
public StatementTemplate(java.lang.String customerName,
java.util.List<Rental> rentals)
customerName - the name of the customer that will appear on the first line of the statement.rentals - the list of rentals from which which we will get titles, charges, compute the total charge and compute the frequent renter points.public java.lang.String toString()
toString in class java.lang.Object