Record Class StakeProgram.MoveStake
java.lang.Object
java.lang.Record
software.sava.solana.programs.stake.StakeProgram.MoveStake
- Enclosing class:
StakeProgram
-
Constructor Summary
ConstructorsConstructorDescriptionMoveStake(byte[] discriminator, long lamports) Creates an instance of aMoveStakerecord 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.static StakeProgram.MoveStakeread(byte[] data, int offset) static StakeProgram.MoveStakeread(software.sava.core.tx.Instruction instruction) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MoveStake
public MoveStake(byte[] discriminator, long lamports) Creates an instance of aMoveStakerecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componentlamports- the value for thelamportsrecord 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
-