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
ConstructorDescriptionBankIdentityResponse
(String bankName, String bankNumber, String swift) Creates an instance of aBankIdentityResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionbankName()
Returns the value of thebankName
record component.Returns the value of thebankNumber
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.swift()
Returns the value of theswift
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BankIdentityResponse
Creates an instance of aBankIdentityResponse
record class.- Parameters:
bankName
- the value for thebankName
record componentbankNumber
- the value for thebankNumber
record componentswift
- the value for theswift
record 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 thebankName
record component.- Returns:
- the value of the
bankName
record component
-
bankNumber
Returns the value of thebankNumber
record component.- Returns:
- the value of the
bankNumber
record component
-
swift
Returns the value of theswift
record component.- Returns:
- the value of the
swift
record component
-