Record Class VoteAccount

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

    Constructors
    Constructor
    Description
    VoteAccount(String votePubKey, String nodePubKey, long activatedStake, boolean epochVoteAccount, int commission, long lastVote, List<EpochCredits> epochCredits, long rootSlot)
    Creates an instance of a VoteAccount record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the activatedStake record component.
    int
    Returns the value of the commission record component.
    Returns the value of the epochCredits record component.
    boolean
    Returns the value of the epochVoteAccount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the lastVote record component.
    Returns the value of the nodePubKey record component.
    long
    Returns the value of the rootSlot record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the votePubKey record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a VoteAccount record class.
      Parameters:
      votePubKey - the value for the votePubKey record component
      nodePubKey - the value for the nodePubKey record component
      activatedStake - the value for the activatedStake record component
      epochVoteAccount - the value for the epochVoteAccount record component
      commission - the value for the commission record component
      lastVote - the value for the lastVote record component
      epochCredits - the value for the epochCredits record component
      rootSlot - the value for the rootSlot record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • votePubKey

      public String votePubKey()
      Returns the value of the votePubKey record component.
      Returns:
      the value of the votePubKey record component
    • nodePubKey

      public String nodePubKey()
      Returns the value of the nodePubKey record component.
      Returns:
      the value of the nodePubKey record component
    • activatedStake

      public long activatedStake()
      Returns the value of the activatedStake record component.
      Returns:
      the value of the activatedStake record component
    • epochVoteAccount

      public boolean epochVoteAccount()
      Returns the value of the epochVoteAccount record component.
      Returns:
      the value of the epochVoteAccount record component
    • commission

      public int commission()
      Returns the value of the commission record component.
      Returns:
      the value of the commission record component
    • lastVote

      public long lastVote()
      Returns the value of the lastVote record component.
      Returns:
      the value of the lastVote record component
    • epochCredits

      public List<EpochCredits> epochCredits()
      Returns the value of the epochCredits record component.
      Returns:
      the value of the epochCredits record component
    • rootSlot

      public long rootSlot()
      Returns the value of the rootSlot record component.
      Returns:
      the value of the rootSlot record component