Record Class StakeProgram.SetLockupChecked
java.lang.Object
java.lang.Record
software.sava.solana.programs.stake.StakeProgram.SetLockupChecked
- Enclosing class:
StakeProgram
public static record StakeProgram.SetLockupChecked(byte[] discriminator, Instant timestamp, OptionalLong epoch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSetLockupChecked(byte[] discriminator, Instant timestamp, OptionalLong epoch) Creates an instance of aSetLockupCheckedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thediscriminatorrecord component.epoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.read(byte[] data, int offset) read(software.sava.core.tx.Instruction instruction) Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SetLockupChecked
Creates an instance of aSetLockupCheckedrecord class.- Parameters:
discriminator- the value for thediscriminatorrecord componenttimestamp- the value for thetimestamprecord componentepoch- the value for theepochrecord 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
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
epoch
Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-