Record Class StakeProgram.Authorize
java.lang.Object
java.lang.Record
software.sava.solana.programs.stake.StakeProgram.Authorize
- Enclosing class:
StakeProgram
public static record StakeProgram.Authorize(byte[] discriminator, software.sava.core.accounts.PublicKey newAuthority, StakeAuthorize stakeAuthorize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorize(byte[] discriminator, software.sava.core.accounts.PublicKey newAuthority, StakeAuthorize stakeAuthorize) Creates an instance of aAuthorizerecord 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 thenewAuthorityrecord component.static StakeProgram.Authorizeread(byte[] data, int offset) static StakeProgram.Authorizeread(software.sava.core.tx.Instruction instruction) Returns the value of thestakeAuthorizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Authorize
public Authorize(byte[] discriminator, software.sava.core.accounts.PublicKey newAuthority, StakeAuthorize stakeAuthorize) Creates an instance of aAuthorizerecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentnewAuthority- the value for thenewAuthorityrecord componentstakeAuthorize- the value for thestakeAuthorizerecord component
-
-
Method Details
-
read
-
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
-
newAuthority
public software.sava.core.accounts.PublicKey newAuthority()Returns the value of thenewAuthorityrecord component.- Returns:
- the value of the
newAuthorityrecord component
-
stakeAuthorize
Returns the value of thestakeAuthorizerecord component.- Returns:
- the value of the
stakeAuthorizerecord component
-