Record Class BalanceDao.ServiceAccountData
java.lang.Object
java.lang.Record
ru.bitel.bgbilling.kernel.contract.balance.server.bean.BalanceDao.ServiceAccountData
- Enclosing class:
BalanceDao
public static record BalanceDao.ServiceAccountData(int serviceId, BigDecimal account)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionServiceAccountData(int serviceId, BigDecimal account) Creates an instance of aServiceAccountDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theserviceIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServiceAccountData
Creates an instance of aServiceAccountDatarecord class.- Parameters:
serviceId- the value for theserviceIdrecord componentaccount- the value for theaccountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
serviceId
public int serviceId()Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-