Record Class SystemProgram.AuthorizeNonceAccount
java.lang.Object
java.lang.Record
software.sava.solana.programs.system.SystemProgram.AuthorizeNonceAccount
- Enclosing class:
SystemProgram
public static record SystemProgram.AuthorizeNonceAccount(byte[] discriminator, software.sava.core.accounts.PublicKey newNonceAuthority)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizeNonceAccount(byte[] discriminator, software.sava.core.accounts.PublicKey newNonceAuthority) Creates an instance of aAuthorizeNonceAccountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thediscriminatorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.software.sava.core.accounts.PublicKeyReturns the value of thenewNonceAuthorityrecord component.read(byte[] data, int offset) read(software.sava.core.tx.Instruction instruction) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuthorizeNonceAccount
public AuthorizeNonceAccount(byte[] discriminator, software.sava.core.accounts.PublicKey newNonceAuthority) Creates an instance of aAuthorizeNonceAccountrecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentnewNonceAuthority- the value for thenewNonceAuthorityrecord component
-
-
Method Details
-
read
public static SystemProgram.AuthorizeNonceAccount read(software.sava.core.tx.Instruction instruction) -
read
-
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). -
discriminator
public byte[] discriminator()Returns the value of thediscriminatorrecord component.- Returns:
- the value of the
discriminatorrecord component
-
newNonceAuthority
public software.sava.core.accounts.PublicKey newNonceAuthority()Returns the value of thenewNonceAuthorityrecord component.- Returns:
- the value of the
newNonceAuthorityrecord component
-