java.lang.Object
java.lang.Record
it.auties.whatsapp.model.payment.PaymentMoney
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecurrencyCoderecord component.private final longThe field for themoneyrecord component.private final intThe field for theoffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPaymentMoney(long money, int offset, String currencyCode) Creates an instance of aPaymentMoneyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrencyCoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmoney()Returns the value of themoneyrecord component.intoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
money
private final long moneyThe field for themoneyrecord component. -
offset
private final int offsetThe field for theoffsetrecord component. -
currencyCode
The field for thecurrencyCoderecord component.
-
-
Constructor Details
-
PaymentMoney
Creates an instance of aPaymentMoneyrecord class.- Parameters:
money- the value for themoneyrecord componentoffset- the value for theoffsetrecord componentcurrencyCode- the value for thecurrencyCoderecord 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 '=='. -
money
public long money()Returns the value of themoneyrecord component.- Returns:
- the value of the
moneyrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
currencyCode
Returns the value of thecurrencyCoderecord component.- Returns:
- the value of the
currencyCoderecord component
-