Record Class SystemProgram.CreateAccount
java.lang.Object
java.lang.Record
software.sava.solana.programs.system.SystemProgram.CreateAccount
- Enclosing class:
SystemProgram
public static record SystemProgram.CreateAccount(byte[] discriminator, long lamports, long space, software.sava.core.accounts.PublicKey programOwner)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCreateAccount(byte[] discriminator, long lamports, long space, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aCreateAccountrecord 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.longlamports()Returns the value of thelamportsrecord component.software.sava.core.accounts.PublicKeyReturns the value of theprogramOwnerrecord component.static SystemProgram.CreateAccountread(byte[] data, int offset) static SystemProgram.CreateAccountread(software.sava.core.tx.Instruction instruction) longspace()Returns the value of thespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateAccount
public CreateAccount(byte[] discriminator, long lamports, long space, software.sava.core.accounts.PublicKey programOwner) Creates an instance of aCreateAccountrecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentlamports- the value for thelamportsrecord componentspace- the value for thespacerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
discriminator
public byte[] discriminator()Returns the value of thediscriminatorrecord component.- Returns:
- the value of the
discriminatorrecord component
-
lamports
public long lamports()Returns the value of thelamportsrecord component.- Returns:
- the value of the
lamportsrecord component
-
space
public long space()Returns the value of thespacerecord component.- Returns:
- the value of the
spacerecord component
-
programOwner
public software.sava.core.accounts.PublicKey programOwner()Returns the value of theprogramOwnerrecord component.- Returns:
- the value of the
programOwnerrecord component
-