java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.TxReward
public record TxReward(String pubKey, long lamports, long postBalance, RewardType rewardType, int commission)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTxReward(String pubKey, long lamports, long postBalance, RewardType rewardType, int commission) Creates an instance of aTxRewardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecommissionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlamports()Returns the value of thelamportsrecord component.static TxRewardparse(systems.comodal.jsoniter.JsonIterator ji) parseRewards(systems.comodal.jsoniter.JsonIterator ji) longReturns the value of thepostBalancerecord component.pubKey()Returns the value of thepubKeyrecord component.Returns the value of therewardTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TxReward
public TxReward(String pubKey, long lamports, long postBalance, RewardType rewardType, int commission) Creates an instance of aTxRewardrecord class.- Parameters:
pubKey- the value for thepubKeyrecord componentlamports- the value for thelamportsrecord componentpostBalance- the value for thepostBalancerecord componentrewardType- the value for therewardTyperecord componentcommission- the value for thecommissionrecord component
-
-
Method Details
-
parse
-
parseRewards
-
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 '=='. -
pubKey
Returns the value of thepubKeyrecord component.- Returns:
- the value of the
pubKeyrecord component
-
lamports
public long lamports()Returns the value of thelamportsrecord component.- Returns:
- the value of the
lamportsrecord component
-
postBalance
public long postBalance()Returns the value of thepostBalancerecord component.- Returns:
- the value of the
postBalancerecord component
-
rewardType
Returns the value of therewardTyperecord component.- Returns:
- the value of the
rewardTyperecord component
-
commission
public int commission()Returns the value of thecommissionrecord component.- Returns:
- the value of the
commissionrecord component
-