Record Class ValidatorStakeInfo

java.lang.Object
java.lang.Record
software.sava.solana.programs.stake.ValidatorStakeInfo
All Implemented Interfaces:
software.sava.core.borsh.Borsh, software.sava.core.serial.Serializable

public record ValidatorStakeInfo(long activeStakeLamports, long transientStakeLamports, long lastUpdateEpoch, long transientSeedSuffix, int unused, int validatorSeedSuffix, StakeStatus podStakeStatus, software.sava.core.accounts.PublicKey voteAccountAddress) extends Record implements software.sava.core.borsh.Borsh
  • Nested Class Summary

    Nested classes/interfaces inherited from interface software.sava.core.borsh.Borsh

    software.sava.core.borsh.Borsh.Enum, software.sava.core.borsh.Borsh.Factory<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ValidatorStakeInfo(long activeStakeLamports, long transientStakeLamports, long lastUpdateEpoch, long transientSeedSuffix, int unused, int validatorSeedSuffix, StakeStatus podStakeStatus, software.sava.core.accounts.PublicKey voteAccountAddress)
    Creates an instance of a ValidatorStakeInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the activeStakeLamports record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    l()
     
    long
    Returns the value of the lastUpdateEpoch record component.
    Returns the value of the podStakeStatus record component.
    read(byte[] data, int offset)
     
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the transientSeedSuffix record component.
    long
    Returns the value of the transientStakeLamports record component.
    int
    Returns the value of the unused record component.
    int
    Returns the value of the validatorSeedSuffix record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the voteAccountAddress record component.
    int
    write(byte[] data, int offset)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.sava.core.borsh.Borsh

    writeOptional

    Methods inherited from interface software.sava.core.serial.Serializable

    reusable, write, write
  • Field Details

    • BYTES

      public static int BYTES
  • Constructor Details

    • ValidatorStakeInfo

      public ValidatorStakeInfo(long activeStakeLamports, long transientStakeLamports, long lastUpdateEpoch, long transientSeedSuffix, int unused, int validatorSeedSuffix, StakeStatus podStakeStatus, software.sava.core.accounts.PublicKey voteAccountAddress)
      Creates an instance of a ValidatorStakeInfo record class.
      Parameters:
      activeStakeLamports - the value for the activeStakeLamports record component
      transientStakeLamports - the value for the transientStakeLamports record component
      lastUpdateEpoch - the value for the lastUpdateEpoch record component
      transientSeedSuffix - the value for the transientSeedSuffix record component
      unused - the value for the unused record component
      validatorSeedSuffix - the value for the validatorSeedSuffix record component
      podStakeStatus - the value for the podStakeStatus record component
      voteAccountAddress - the value for the voteAccountAddress record component
  • Method Details

    • read

      public static ValidatorStakeInfo read(byte[] data, int offset)
    • write

      public int write(byte[] data, int offset)
      Specified by:
      write in interface software.sava.core.serial.Serializable
    • l

      public int l()
      Specified by:
      l in interface software.sava.core.serial.Serializable
    • 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.
    • activeStakeLamports

      public long activeStakeLamports()
      Returns the value of the activeStakeLamports record component.
      Returns:
      the value of the activeStakeLamports record component
    • transientStakeLamports

      public long transientStakeLamports()
      Returns the value of the transientStakeLamports record component.
      Returns:
      the value of the transientStakeLamports record component
    • lastUpdateEpoch

      public long lastUpdateEpoch()
      Returns the value of the lastUpdateEpoch record component.
      Returns:
      the value of the lastUpdateEpoch record component
    • transientSeedSuffix

      public long transientSeedSuffix()
      Returns the value of the transientSeedSuffix record component.
      Returns:
      the value of the transientSeedSuffix record component
    • unused

      public int unused()
      Returns the value of the unused record component.
      Returns:
      the value of the unused record component
    • validatorSeedSuffix

      public int validatorSeedSuffix()
      Returns the value of the validatorSeedSuffix record component.
      Returns:
      the value of the validatorSeedSuffix record component
    • podStakeStatus

      public StakeStatus podStakeStatus()
      Returns the value of the podStakeStatus record component.
      Returns:
      the value of the podStakeStatus record component
    • voteAccountAddress

      public software.sava.core.accounts.PublicKey voteAccountAddress()
      Returns the value of the voteAccountAddress record component.
      Returns:
      the value of the voteAccountAddress record component