java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.InflationReward
public record InflationReward(long amount, long effectiveSlot, long epoch, long postBalance, int commission)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInflationReward(long amount, long effectiveSlot, long epoch, long postBalance, int commission) Creates an instance of aInflationRewardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.intReturns the value of thecommissionrecord component.longReturns the value of theeffectiveSlotrecord component.longepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static List<InflationReward> parse(systems.comodal.jsoniter.JsonIterator ji) longReturns the value of thepostBalancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InflationReward
public InflationReward(long amount, long effectiveSlot, long epoch, long postBalance, int commission) Creates an instance of aInflationRewardrecord class.- Parameters:
amount- the value for theamountrecord componenteffectiveSlot- the value for theeffectiveSlotrecord componentepoch- the value for theepochrecord componentpostBalance- the value for thepostBalancerecord componentcommission- the value for thecommissionrecord component
-
-
Method Details
-
parse
-
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 with '=='. -
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
effectiveSlot
public long effectiveSlot()Returns the value of theeffectiveSlotrecord component.- Returns:
- the value of the
effectiveSlotrecord component
-
epoch
public long epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-
postBalance
public long postBalance()Returns the value of thepostBalancerecord component.- Returns:
- the value of the
postBalancerecord component
-
commission
public int commission()Returns the value of thecommissionrecord component.- Returns:
- the value of the
commissionrecord component
-