Record Class StakeProgram.Initialize
java.lang.Object
java.lang.Record
software.sava.solana.programs.stake.StakeProgram.Initialize
- Enclosing class:
StakeProgram
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize(byte[] discriminator, software.sava.core.accounts.PublicKey staker, software.sava.core.accounts.PublicKey withdrawer, LockUp lockUp) Creates an instance of aInitializerecord 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.lockUp()Returns the value of thelockUprecord component.static StakeProgram.Initializeread(byte[] data, int offset) static StakeProgram.Initializeread(software.sava.core.tx.Instruction instruction) software.sava.core.accounts.PublicKeystaker()Returns the value of thestakerrecord component.final StringtoString()Returns a string representation of this record class.software.sava.core.accounts.PublicKeyReturns the value of thewithdrawerrecord component.
-
Constructor Details
-
Initialize
public Initialize(byte[] discriminator, software.sava.core.accounts.PublicKey staker, software.sava.core.accounts.PublicKey withdrawer, LockUp lockUp) Creates an instance of aInitializerecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentstaker- the value for thestakerrecord componentwithdrawer- the value for thewithdrawerrecord componentlockUp- the value for thelockUprecord 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
-
staker
public software.sava.core.accounts.PublicKey staker()Returns the value of thestakerrecord component.- Returns:
- the value of the
stakerrecord component
-
withdrawer
public software.sava.core.accounts.PublicKey withdrawer()Returns the value of thewithdrawerrecord component.- Returns:
- the value of the
withdrawerrecord component
-
lockUp
Returns the value of thelockUprecord component.- Returns:
- the value of the
lockUprecord component
-