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
@Generated(value="lombok") public String getAccountName()
@Generated(value="lombok") public String getAccountNumber()
@Generated(value="lombok") public String getChequeNumber()
@Generated(value="lombok") public String getPayee()
@Generated(value="lombok") public LocalDateTime getDateWritten()
@Generated(value="lombok") public String getBankName()
@Generated(value="lombok") public String getBankAddress()
@Generated(value="lombok") public String getBankIdentificationNumber()
@Generated(value="lombok") public boolean equals(Object o)
equals
in class PaymentMethod
@Generated(value="lombok") protected boolean canEqual(Object other)
canEqual
in class PaymentMethod
@Generated(value="lombok") public int hashCode()
hashCode
in class PaymentMethod
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.