java.lang.Object
java.lang.Record
software.sava.solana.programs.stake.LockUp
All Implemented Interfaces:
software.sava.core.borsh.Borsh, software.sava.core.serial.Serializable

public record LockUp(long unixTimestamp, long epoch, software.sava.core.accounts.PublicKey custodian) extends Record implements software.sava.core.borsh.Borsh
  • Nested Class Summary

    Nested classes/interfaces inherited from interface software.sava.core.borsh.Borsh

    software.sava.core.borsh.Borsh.Enum, software.sava.core.borsh.Borsh.Factory<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final LockUp
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LockUp(long unixTimestamp, long epoch, software.sava.core.accounts.PublicKey custodian)
    Creates an instance of a LockUp record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    software.sava.core.accounts.PublicKey
    Returns the value of the custodian record component.
    long
    Returns the value of the epoch record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    l()
     
    static LockUp
    read(byte[] data, int offset)
     
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the unixTimestamp record component.
    int
    write(byte[] data, int offset)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.sava.core.borsh.Borsh

    writeOptional

    Methods inherited from interface software.sava.core.serial.Serializable

    reusable, write, write
  • Field Details

  • Constructor Details

    • LockUp

      public LockUp(long unixTimestamp, long epoch, software.sava.core.accounts.PublicKey custodian)
      Creates an instance of a LockUp record class.
      Parameters:
      unixTimestamp - the value for the unixTimestamp record component
      epoch - the value for the epoch record component
      custodian - the value for the custodian record component
  • Method Details

    • read

      public static LockUp read(byte[] data, int offset)
    • l

      public int l()
      Specified by:
      l in interface software.sava.core.serial.Serializable
    • write

      public int write(byte[] data, int offset)
      Specified by:
      write in interface software.sava.core.serial.Serializable
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • unixTimestamp

      public long unixTimestamp()
      Returns the value of the unixTimestamp record component.
      Returns:
      the value of the unixTimestamp record component
    • epoch

      public long epoch()
      Returns the value of the epoch record component.
      Returns:
      the value of the epoch record component
    • custodian

      public software.sava.core.accounts.PublicKey custodian()
      Returns the value of the custodian record component.
      Returns:
      the value of the custodian record component