java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.VoteAccount
public record VoteAccount(String votePubKey, String nodePubKey, long activatedStake, boolean epochVoteAccount, int commission, long lastVote, List<EpochCredits> epochCredits, long rootSlot)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVoteAccount(String votePubKey, String nodePubKey, long activatedStake, boolean epochVoteAccount, int commission, long lastVote, List<EpochCredits> epochCredits, long rootSlot) Creates an instance of aVoteAccountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theactivatedStakerecord component.intReturns the value of thecommissionrecord component.Returns the value of theepochCreditsrecord component.booleanReturns the value of theepochVoteAccountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlastVote()Returns the value of thelastVoterecord component.Returns the value of thenodePubKeyrecord component.longrootSlot()Returns the value of therootSlotrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevotePubKeyrecord component.
-
Constructor Details
-
VoteAccount
public VoteAccount(String votePubKey, String nodePubKey, long activatedStake, boolean epochVoteAccount, int commission, long lastVote, List<EpochCredits> epochCredits, long rootSlot) Creates an instance of aVoteAccountrecord class.- Parameters:
votePubKey- the value for thevotePubKeyrecord componentnodePubKey- the value for thenodePubKeyrecord componentactivatedStake- the value for theactivatedStakerecord componentepochVoteAccount- the value for theepochVoteAccountrecord componentcommission- the value for thecommissionrecord componentlastVote- the value for thelastVoterecord componentepochCredits- the value for theepochCreditsrecord componentrootSlot- the value for therootSlotrecord 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 '=='. -
votePubKey
Returns the value of thevotePubKeyrecord component.- Returns:
- the value of the
votePubKeyrecord component
-
nodePubKey
Returns the value of thenodePubKeyrecord component.- Returns:
- the value of the
nodePubKeyrecord component
-
activatedStake
public long activatedStake()Returns the value of theactivatedStakerecord component.- Returns:
- the value of the
activatedStakerecord component
-
epochVoteAccount
public boolean epochVoteAccount()Returns the value of theepochVoteAccountrecord component.- Returns:
- the value of the
epochVoteAccountrecord component
-
commission
public int commission()Returns the value of thecommissionrecord component.- Returns:
- the value of the
commissionrecord component
-
lastVote
public long lastVote()Returns the value of thelastVoterecord component.- Returns:
- the value of the
lastVoterecord component
-
epochCredits
Returns the value of theepochCreditsrecord component.- Returns:
- the value of the
epochCreditsrecord component
-
rootSlot
public long rootSlot()Returns the value of therootSlotrecord component.- Returns:
- the value of the
rootSlotrecord component
-