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 |
|---|---|
boolean |
equals(Object obj) |
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()
The string representation of this
PaymentMethod. |
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 getAccountName()
public String getAccountNumber()
public String getChequeNumber()
public String getPayee()
public LocalDateTime getDateWritten()
public String getBankName()
public String getBankAddress()
public String getBankIdentificationNumber()
public String toString()
PaymentMethodPaymentMethod. It's the description that was given to the
constructor.toString in class PaymentMethodPaymentMethod.public boolean equals(Object obj)
equals in class PaymentMethodpublic int hashCode()
hashCode in class PaymentMethodCopyright © 2014 Pivotal Software, Inc.. All rights reserved.