public class ImmutableInvoice extends ImmutableBaseData implements Invoice
Invoice in ImmutableBaseData hierarchy.| Constructor and Description |
|---|
ImmutableInvoice(int id,
String title,
ImmutablePerson paidByPerson,
List<ImmutableItem> items)
Create immutable invoice.
|
| Modifier and Type | Method and Description |
|---|---|
List<ImmutableItem> |
getItems()
Get the list of
Items which belong to this invoice. |
int |
getPaidBy()
Get the ID of the
Person who paid for the invoice. |
ImmutablePerson |
getPaidByPerson()
Get the "paid by"
ImmutablePerson object. |
String |
getTitle()
Get the title of the invoice.
|
equals, getId, hashCodepublic ImmutableInvoice(int id,
String title,
ImmutablePerson paidByPerson,
List<ImmutableItem> items)
id - ID of invoicetitle - title of invoicepaidByPerson - "paid by" person objectitems - list of ImmutableItemspublic String getTitle()
Invoicepublic int getPaidBy()
InvoicePerson who paid for the invoice.public List<ImmutableItem> getItems()
InvoiceItems which belong to this invoice.public ImmutablePerson getPaidByPerson()
ImmutablePerson object.Copyright © 2015 illucIT Software GmbH. All rights reserved.