jfreerails.world.accounts
Class Receipt
java.lang.Object
jfreerails.world.accounts.Receipt
- All Implemented Interfaces:
- java.io.Serializable, Transaction, FreerailsSerializable
- Direct Known Subclasses:
- DeliverCargoReceipt
public class Receipt
- extends java.lang.Object
- implements Transaction
A credit.
- Author:
- Luke Lindsay
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
amount
private final Money amount
category
private final Transaction.Category category
Receipt
public Receipt(Money m,
Transaction.Category category)
deltaAssets
public Money deltaAssets()
- Specified by:
deltaAssets in interface Transaction
deltaCash
public Money deltaCash()
- Description copied from interface:
Transaction
- Positive means credit.
- Specified by:
deltaCash in interface Transaction
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
getCategory
public Transaction.Category getCategory()
- Specified by:
getCategory in interface Transaction
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object