Record Class SystemProgram.AssignWithSeed
java.lang.Object
java.lang.Record
software.sava.solana.programs.system.SystemProgram.AssignWithSeed
- Enclosing class:
SystemProgram
public static record SystemProgram.AssignWithSeed(byte[] discriminator, software.sava.core.accounts.PublicKey baseAccount, byte[] seed, software.sava.core.accounts.PublicKey programOwner)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAssignWithSeed(byte[] discriminator, software.sava.core.accounts.PublicKey baseAccount, byte[] seed, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aAssignWithSeedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionsoftware.sava.core.accounts.PublicKeyReturns the value of thebaseAccountrecord component.byte[]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 theprogramOwnerrecord component.static SystemProgram.AssignWithSeedread(byte[] data, int offset) static SystemProgram.AssignWithSeedread(software.sava.core.tx.Instruction instruction) byte[]seed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssignWithSeed
public AssignWithSeed(byte[] discriminator, software.sava.core.accounts.PublicKey baseAccount, byte[] seed, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aAssignWithSeedrecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentbaseAccount- the value for thebaseAccountrecord componentseed- the value for theseedrecord componentprogramOwner- the value for theprogramOwnerrecord 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
-
baseAccount
public software.sava.core.accounts.PublicKey baseAccount()Returns the value of thebaseAccountrecord component.- Returns:
- the value of the
baseAccountrecord component
-
seed
public byte[] seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
programOwner
public software.sava.core.accounts.PublicKey programOwner()Returns the value of theprogramOwnerrecord component.- Returns:
- the value of the
programOwnerrecord component
-