public final class Cash extends PaymentMethod
PaymentMethod is used to designate all payments made in cash.| Modifier and Type | Field and Description |
|---|---|
static Cash |
CASH
A convenience instance
CASH is defined in this class, which can be reused, instead of instantiating a
new instance every time one is needed. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public String toString()
toString in class PaymentMethodpublic boolean equals(Object o)
equals in class PaymentMethodprotected boolean canEqual(Object other)
canEqual in class PaymentMethodpublic int hashCode()
hashCode in class PaymentMethodCopyright © 2018. All rights reserved.