Record Class FeeType.Epoch

java.lang.Object
java.lang.Record
software.sava.solana.programs.stakepool.FeeType.Epoch
All Implemented Interfaces:
software.sava.core.borsh.Borsh, software.sava.core.borsh.RustEnum, software.sava.core.borsh.RustEnum.BorshEnum, software.sava.core.serial.Serializable, FeeType
Enclosing interface:
FeeType

public static record FeeType.Epoch(StakePoolState.Fee val) extends Record implements software.sava.core.borsh.RustEnum.BorshEnum, FeeType
  • 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>

    Nested classes/interfaces inherited from interface software.sava.solana.programs.stakepool.FeeType

    FeeType.Epoch, FeeType.SolDeposit, FeeType.SolReferral, FeeType.SolWithdrawal, FeeType.StakeDeposit, FeeType.StakeReferral, FeeType.StakeWithdrawal

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

    software.sava.core.borsh.RustEnum.BorshArrayEnum, software.sava.core.borsh.RustEnum.BorshEnum, software.sava.core.borsh.RustEnum.BorshVectorEnum, software.sava.core.borsh.RustEnum.EnumBool, software.sava.core.borsh.RustEnum.EnumBytes, software.sava.core.borsh.RustEnum.EnumFloat32, software.sava.core.borsh.RustEnum.EnumFloat64, software.sava.core.borsh.RustEnum.EnumInt128, software.sava.core.borsh.RustEnum.EnumInt16, software.sava.core.borsh.RustEnum.EnumInt256, software.sava.core.borsh.RustEnum.EnumInt32, software.sava.core.borsh.RustEnum.EnumInt64, software.sava.core.borsh.RustEnum.EnumInt8, software.sava.core.borsh.RustEnum.EnumNone, software.sava.core.borsh.RustEnum.EnumPublicKey, software.sava.core.borsh.RustEnum.EnumString, software.sava.core.borsh.RustEnum.OptionalBorshEnum, software.sava.core.borsh.RustEnum.OptionalEnumBool, software.sava.core.borsh.RustEnum.OptionalEnumBytes, software.sava.core.borsh.RustEnum.OptionalEnumFloat32, software.sava.core.borsh.RustEnum.OptionalEnumFloat64, software.sava.core.borsh.RustEnum.OptionalEnumInt128, software.sava.core.borsh.RustEnum.OptionalEnumInt16, software.sava.core.borsh.RustEnum.OptionalEnumInt256, software.sava.core.borsh.RustEnum.OptionalEnumInt32, software.sava.core.borsh.RustEnum.OptionalEnumInt64, software.sava.core.borsh.RustEnum.OptionalEnumInt8, software.sava.core.borsh.RustEnum.OptionalEnumPublicKey, software.sava.core.borsh.RustEnum.OptionalEnumString, software.sava.core.borsh.RustEnum.PublicKeyArrayEnum, software.sava.core.borsh.RustEnum.PublicKeyVectorEnum
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of a Epoch record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
     
    final String
    Returns a string representation of this record class.
    val()
    Returns the value of the val record component.

    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.borsh.RustEnum

    name, writeOrdinal

    Methods inherited from interface software.sava.core.borsh.RustEnum.BorshEnum

    l, write

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

    reusable, write, write
  • Constructor Details

    • Epoch

      public Epoch(StakePoolState.Fee val)
      Creates an instance of a Epoch record class.
      Parameters:
      val - the value for the val record component
  • Method Details

    • ordinal

      public int ordinal()
      Specified by:
      ordinal in interface software.sava.core.borsh.RustEnum
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • val

      public StakePoolState.Fee val()
      Returns the value of the val record component.
      Specified by:
      val in interface software.sava.core.borsh.RustEnum.BorshEnum
      Returns:
      the value of the val record component