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
ConstructorsConstructorDescriptionStakePoolAccountsRecord(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 aStakePoolAccountsRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.software.sava.core.accounts.meta.AccountMetaReturns the value of theinvokedSingleValidatorStakePoolProgramrecord component.software.sava.core.accounts.meta.AccountMetaReturns the value of theinvokedStakePoolProgramrecord component.software.sava.core.accounts.meta.AccountMetaReturns the value of thereadSingleValidatorStakePoolProgramrecord component.software.sava.core.accounts.meta.AccountMetaReturns the value of thereadStakePoolProgramrecord component.software.sava.core.accounts.PublicKeyReturns the value of thesanctumMultiValidatorStakePoolProgramrecord component.software.sava.core.accounts.PublicKeyReturns the value of thesanctumSingleValidatorStakePoolProgramrecord component.software.sava.core.accounts.PublicKeyReturns the value of thesingleValidatorStakePoolProgramrecord component.software.sava.core.accounts.PublicKeyReturns the value of thestakePoolProgramrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aStakePoolAccountsRecordrecord class.- Parameters:
stakePoolProgram- the value for thestakePoolProgramrecord componentinvokedStakePoolProgram- the value for theinvokedStakePoolProgramrecord componentreadStakePoolProgram- the value for thereadStakePoolProgramrecord componentsingleValidatorStakePoolProgram- the value for thesingleValidatorStakePoolProgramrecord componentinvokedSingleValidatorStakePoolProgram- the value for theinvokedSingleValidatorStakePoolProgramrecord componentreadSingleValidatorStakePoolProgram- the value for thereadSingleValidatorStakePoolProgramrecord componentsanctumMultiValidatorStakePoolProgram- the value for thesanctumMultiValidatorStakePoolProgramrecord componentsanctumSingleValidatorStakePoolProgram- the value for thesanctumSingleValidatorStakePoolProgramrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
stakePoolProgram
public software.sava.core.accounts.PublicKey stakePoolProgram()Returns the value of thestakePoolProgramrecord component.- Specified by:
stakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
stakePoolProgramrecord component
-
invokedStakePoolProgram
public software.sava.core.accounts.meta.AccountMeta invokedStakePoolProgram()Returns the value of theinvokedStakePoolProgramrecord component.- Specified by:
invokedStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
invokedStakePoolProgramrecord component
-
readStakePoolProgram
public software.sava.core.accounts.meta.AccountMeta readStakePoolProgram()Returns the value of thereadStakePoolProgramrecord component.- Specified by:
readStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
readStakePoolProgramrecord component
-
singleValidatorStakePoolProgram
public software.sava.core.accounts.PublicKey singleValidatorStakePoolProgram()Returns the value of thesingleValidatorStakePoolProgramrecord component.- Specified by:
singleValidatorStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
singleValidatorStakePoolProgramrecord component
-
invokedSingleValidatorStakePoolProgram
public software.sava.core.accounts.meta.AccountMeta invokedSingleValidatorStakePoolProgram()Returns the value of theinvokedSingleValidatorStakePoolProgramrecord component.- Specified by:
invokedSingleValidatorStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
invokedSingleValidatorStakePoolProgramrecord component
-
readSingleValidatorStakePoolProgram
public software.sava.core.accounts.meta.AccountMeta readSingleValidatorStakePoolProgram()Returns the value of thereadSingleValidatorStakePoolProgramrecord component.- Specified by:
readSingleValidatorStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
readSingleValidatorStakePoolProgramrecord component
-
sanctumMultiValidatorStakePoolProgram
public software.sava.core.accounts.PublicKey sanctumMultiValidatorStakePoolProgram()Returns the value of thesanctumMultiValidatorStakePoolProgramrecord component.- Specified by:
sanctumMultiValidatorStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
sanctumMultiValidatorStakePoolProgramrecord component
-
sanctumSingleValidatorStakePoolProgram
public software.sava.core.accounts.PublicKey sanctumSingleValidatorStakePoolProgram()Returns the value of thesanctumSingleValidatorStakePoolProgramrecord component.- Specified by:
sanctumSingleValidatorStakePoolProgramin interfaceStakePoolAccounts- Returns:
- the value of the
sanctumSingleValidatorStakePoolProgramrecord component
-