Package api.mpba.rastvdmy.dto.response
Record Class BankIdentityResponse
java.lang.Object
java.lang.Record
api.mpba.rastvdmy.dto.response.BankIdentityResponse
- Record Components:
 bankName- The name of the bank.bankNumber- The bank's identification number.swift- The SWIFT code of the bank.
This class represents the response for a bank identity in the system.
- 
Constructor Summary
ConstructorsConstructorDescriptionBankIdentityResponse(String bankName, String bankNumber, String swift) Creates an instance of aBankIdentityResponserecord class. - 
Method Summary
Modifier and TypeMethodDescriptionbankName()Returns the value of thebankNamerecord component.Returns the value of thebankNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.swift()Returns the value of theswiftrecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
BankIdentityResponse
Creates an instance of aBankIdentityResponserecord class.- Parameters:
 bankName- the value for thebankNamerecord componentbankNumber- the value for thebankNumberrecord componentswift- the value for theswiftrecord component
 
 - 
 - 
Method Details
- 
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. - 
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). - 
bankName
Returns the value of thebankNamerecord component.- Returns:
 - the value of the 
bankNamerecord component 
 - 
bankNumber
Returns the value of thebankNumberrecord component.- Returns:
 - the value of the 
bankNumberrecord component 
 - 
swift
Returns the value of theswiftrecord component.- Returns:
 - the value of the 
swiftrecord component 
 
 -