Record Class StakePoolAccountsRecord

java.lang.Object
java.lang.Record
software.sava.solana.programs.stakepool.StakePoolAccountsRecord
All Implemented Interfaces:
StakePoolAccounts

public record StakePoolAccountsRecord(software.sava.core.accounts.PublicKey stakePoolProgram, software.sava.core.accounts.meta.AccountMeta invokedStakePoolProgram, software.sava.core.accounts.meta.AccountMeta readStakePoolProgram, software.sava.core.accounts.PublicKey singleValidatorStakePoolProgram, software.sava.core.accounts.meta.AccountMeta invokedSingleValidatorStakePoolProgram, software.sava.core.accounts.meta.AccountMeta readSingleValidatorStakePoolProgram, software.sava.core.accounts.PublicKey sanctumMultiValidatorStakePoolProgram, software.sava.core.accounts.PublicKey sanctumSingleValidatorStakePoolProgram) extends Record implements StakePoolAccounts
  • Field Summary

    Fields inherited from interface software.sava.solana.programs.stakepool.StakePoolAccounts

    MAIN_NET
  • Constructor Summary

    Constructors
    Constructor
    Description
    StakePoolAccountsRecord(software.sava.core.accounts.PublicKey stakePoolProgram, software.sava.core.accounts.meta.AccountMeta invokedStakePoolProgram, software.sava.core.accounts.meta.AccountMeta readStakePoolProgram, software.sava.core.accounts.PublicKey singleValidatorStakePoolProgram, software.sava.core.accounts.meta.AccountMeta invokedSingleValidatorStakePoolProgram, software.sava.core.accounts.meta.AccountMeta readSingleValidatorStakePoolProgram, software.sava.core.accounts.PublicKey sanctumMultiValidatorStakePoolProgram, software.sava.core.accounts.PublicKey sanctumSingleValidatorStakePoolProgram)
    Creates an instance of a StakePoolAccountsRecord record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    software.sava.core.accounts.meta.AccountMeta
    Returns the value of the invokedSingleValidatorStakePoolProgram record component.
    software.sava.core.accounts.meta.AccountMeta
    Returns the value of the invokedStakePoolProgram record component.
    software.sava.core.accounts.meta.AccountMeta
    Returns the value of the readSingleValidatorStakePoolProgram record component.
    software.sava.core.accounts.meta.AccountMeta
    Returns the value of the readStakePoolProgram record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the sanctumMultiValidatorStakePoolProgram record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the sanctumSingleValidatorStakePoolProgram record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the singleValidatorStakePoolProgram record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the stakePoolProgram record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StakePoolAccountsRecord

      public StakePoolAccountsRecord(software.sava.core.accounts.PublicKey stakePoolProgram, software.sava.core.accounts.meta.AccountMeta invokedStakePoolProgram, software.sava.core.accounts.meta.AccountMeta readStakePoolProgram, software.sava.core.accounts.PublicKey singleValidatorStakePoolProgram, software.sava.core.accounts.meta.AccountMeta invokedSingleValidatorStakePoolProgram, software.sava.core.accounts.meta.AccountMeta readSingleValidatorStakePoolProgram, software.sava.core.accounts.PublicKey sanctumMultiValidatorStakePoolProgram, software.sava.core.accounts.PublicKey sanctumSingleValidatorStakePoolProgram)
      Creates an instance of a StakePoolAccountsRecord record class.
      Parameters:
      stakePoolProgram - the value for the stakePoolProgram record component
      invokedStakePoolProgram - the value for the invokedStakePoolProgram record component
      readStakePoolProgram - the value for the readStakePoolProgram record component
      singleValidatorStakePoolProgram - the value for the singleValidatorStakePoolProgram record component
      invokedSingleValidatorStakePoolProgram - the value for the invokedSingleValidatorStakePoolProgram record component
      readSingleValidatorStakePoolProgram - the value for the readSingleValidatorStakePoolProgram record component
      sanctumMultiValidatorStakePoolProgram - the value for the sanctumMultiValidatorStakePoolProgram record component
      sanctumSingleValidatorStakePoolProgram - the value for the sanctumSingleValidatorStakePoolProgram 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • stakePoolProgram

      public software.sava.core.accounts.PublicKey stakePoolProgram()
      Returns the value of the stakePoolProgram record component.
      Specified by:
      stakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the stakePoolProgram record component
    • invokedStakePoolProgram

      public software.sava.core.accounts.meta.AccountMeta invokedStakePoolProgram()
      Returns the value of the invokedStakePoolProgram record component.
      Specified by:
      invokedStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the invokedStakePoolProgram record component
    • readStakePoolProgram

      public software.sava.core.accounts.meta.AccountMeta readStakePoolProgram()
      Returns the value of the readStakePoolProgram record component.
      Specified by:
      readStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the readStakePoolProgram record component
    • singleValidatorStakePoolProgram

      public software.sava.core.accounts.PublicKey singleValidatorStakePoolProgram()
      Returns the value of the singleValidatorStakePoolProgram record component.
      Specified by:
      singleValidatorStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the singleValidatorStakePoolProgram record component
    • invokedSingleValidatorStakePoolProgram

      public software.sava.core.accounts.meta.AccountMeta invokedSingleValidatorStakePoolProgram()
      Returns the value of the invokedSingleValidatorStakePoolProgram record component.
      Specified by:
      invokedSingleValidatorStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the invokedSingleValidatorStakePoolProgram record component
    • readSingleValidatorStakePoolProgram

      public software.sava.core.accounts.meta.AccountMeta readSingleValidatorStakePoolProgram()
      Returns the value of the readSingleValidatorStakePoolProgram record component.
      Specified by:
      readSingleValidatorStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the readSingleValidatorStakePoolProgram record component
    • sanctumMultiValidatorStakePoolProgram

      public software.sava.core.accounts.PublicKey sanctumMultiValidatorStakePoolProgram()
      Returns the value of the sanctumMultiValidatorStakePoolProgram record component.
      Specified by:
      sanctumMultiValidatorStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the sanctumMultiValidatorStakePoolProgram record component
    • sanctumSingleValidatorStakePoolProgram

      public software.sava.core.accounts.PublicKey sanctumSingleValidatorStakePoolProgram()
      Returns the value of the sanctumSingleValidatorStakePoolProgram record component.
      Specified by:
      sanctumSingleValidatorStakePoolProgram in interface StakePoolAccounts
      Returns:
      the value of the sanctumSingleValidatorStakePoolProgram record component