Package org.salespointframework.payment
Class Cash
java.lang.Object
org.salespointframework.payment.PaymentMethod
org.salespointframework.payment.Cash
- All Implemented Interfaces:
Serializable
,org.jmolecules.ddd.types.ValueObject
The cash
PaymentMethod
is used to designate all payments made in cash.- Author:
- Hannes Weisbach
- See Also:
-
Field Summary
-
Method Summary
-
Field Details
-
CASH
A convenience instanceCASH
is defined in this class, which can be reused, instead of instantiating a new instance every time one is needed.
-
-
Method Details
-
toString
- Overrides:
toString
in classPaymentMethod
-
equals
- Overrides:
equals
in classPaymentMethod
-
canEqual
- Overrides:
canEqual
in classPaymentMethod
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPaymentMethod
-