Record Class SystemProgram.Assign
java.lang.Object
java.lang.Record
software.sava.solana.programs.system.SystemProgram.Assign
- Enclosing class:
SystemProgram
public static record SystemProgram.Assign(byte[] discriminator, software.sava.core.accounts.PublicKey programOwner)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAssign(byte[] discriminator, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aAssignrecord 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 theprogramOwnerrecord component.static SystemProgram.Assignread(byte[] data, int offset) static SystemProgram.Assignread(software.sava.core.tx.Instruction instruction) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Assign
public Assign(byte[] discriminator, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aAssignrecord class.- Parameters:
discriminator- the value for thediscriminatorrecord 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
-
programOwner
public software.sava.core.accounts.PublicKey programOwner()Returns the value of theprogramOwnerrecord component.- Returns:
- the value of the
programOwnerrecord component
-