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 PaymentMethod
public boolean equals(Object o)
equals
in class PaymentMethod
protected boolean canEqual(Object other)
canEqual
in class PaymentMethod
public int hashCode()
hashCode
in class PaymentMethod
Copyright © 2019. All rights reserved.