public final class Cheque extends PaymentMethod
Cheque
represents such a
written order of payment in a digital form.Constructor and Description |
---|
Cheque(String accountName,
String accountNumber,
String chequeNumber,
String payee,
LocalDateTime dateWritten,
String bankName,
String bankAddress,
String bankIdentificationNumber)
Instantiate a new
Cheque instance. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getAccountName()
Name of the account holder.
|
String |
getAccountNumber()
Number of the account on which the cheque is drawn.
|
String |
getBankAddress()
Address of the bank, that issued the cheque.
|
String |
getBankIdentificationNumber()
Unique identification number of this bank.
|
String |
getBankName()
Name of the bank, that issued the cheque.
|
String |
getChequeNumber()
Number uniquely identifying this cheque.
|
LocalDateTime |
getDateWritten()
Date on which the cheque was written.
|
String |
getPayee()
Name of the payee.
|
int |
hashCode() |
String |
toString() |
public Cheque(String accountName, String accountNumber, String chequeNumber, String payee, LocalDateTime dateWritten, String bankName, String bankAddress, String bankIdentificationNumber)
Cheque
instance.accountName
- Name of the account holder.accountNumber
- Number of this account on which the cheque is drawn.chequeNumber
- Number of this cheque. This is a number uniquely identifying a cheque.payee
- Name of the party which receives the cheque.dateWritten
- DateTime
object representing the date on which the cheque was written,bankName
- Name of the bank that issued the cheque,bankAddress
- Address of the bank that issued the cheque.bankIdentificationNumber
- Unique identifier of the bank that issued the cheque. Also known as the bank
routing number.public String toString()
toString
in class PaymentMethod
public String getAccountName()
public String getAccountNumber()
public String getChequeNumber()
public String getPayee()
public LocalDateTime getDateWritten()
public String getBankName()
public String getBankAddress()
public String getBankIdentificationNumber()
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.