Package com.tuladb

Record Class Models.AccountMetadataEvent

java.lang.Object
java.lang.Record
com.tuladb.Models.AccountMetadataEvent
Enclosing class:
Models

public static record Models.AccountMetadataEvent(long timestamp, int ledgerId, int currency, long accountHi, long accountLo, long oldLimitLow, long oldLimitHigh, long newLimitLow, long newLimitHigh, boolean participantIdPresent, long participantId, byte eventType, byte updateMask) extends Record
Engine AccountMetadataEvent (80 bytes). ledgerId and currency (bytes 8..15 since wire version 3) complete the account's key with accountHi/accountLo.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
     
    static final byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AccountMetadataEvent(long timestamp, int ledgerId, int currency, long accountHi, long accountLo, long oldLimitLow, long oldLimitHigh, long newLimitLow, long newLimitHigh, boolean participantIdPresent, long participantId, byte eventType, byte updateMask)
    Creates an instance of a AccountMetadataEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the accountHi record component.
    long
    Returns the value of the accountLo record component.
    int
    Returns the value of the currency record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    byte
    Returns the value of the eventType record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the ledgerId record component.
    long
    Returns the value of the newLimitHigh record component.
    long
    Returns the value of the newLimitLow record component.
    long
    Returns the value of the oldLimitHigh record component.
    long
    Returns the value of the oldLimitLow record component.
    long
    Returns the value of the participantId record component.
    boolean
    Returns the value of the participantIdPresent record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.
    byte
    Returns the value of the updateMask record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • AccountMetadataEvent

      public AccountMetadataEvent(long timestamp, int ledgerId, int currency, long accountHi, long accountLo, long oldLimitLow, long oldLimitHigh, long newLimitLow, long newLimitHigh, boolean participantIdPresent, long participantId, byte eventType, byte updateMask)
      Creates an instance of a AccountMetadataEvent record class.
      Parameters:
      timestamp - the value for the timestamp record component
      ledgerId - the value for the ledgerId record component
      currency - the value for the currency record component
      accountHi - the value for the accountHi record component
      accountLo - the value for the accountLo record component
      oldLimitLow - the value for the oldLimitLow record component
      oldLimitHigh - the value for the oldLimitHigh record component
      newLimitLow - the value for the newLimitLow record component
      newLimitHigh - the value for the newLimitHigh record component
      participantIdPresent - the value for the participantIdPresent record component
      participantId - the value for the participantId record component
      eventType - the value for the eventType record component
      updateMask - the value for the updateMask record component
  • Method Details

    • 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 '=='.
      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.
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • ledgerId

      public int ledgerId()
      Returns the value of the ledgerId record component.
      Returns:
      the value of the ledgerId record component
    • currency

      public int currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • accountHi

      public long accountHi()
      Returns the value of the accountHi record component.
      Returns:
      the value of the accountHi record component
    • accountLo

      public long accountLo()
      Returns the value of the accountLo record component.
      Returns:
      the value of the accountLo record component
    • oldLimitLow

      public long oldLimitLow()
      Returns the value of the oldLimitLow record component.
      Returns:
      the value of the oldLimitLow record component
    • oldLimitHigh

      public long oldLimitHigh()
      Returns the value of the oldLimitHigh record component.
      Returns:
      the value of the oldLimitHigh record component
    • newLimitLow

      public long newLimitLow()
      Returns the value of the newLimitLow record component.
      Returns:
      the value of the newLimitLow record component
    • newLimitHigh

      public long newLimitHigh()
      Returns the value of the newLimitHigh record component.
      Returns:
      the value of the newLimitHigh record component
    • participantIdPresent

      public boolean participantIdPresent()
      Returns the value of the participantIdPresent record component.
      Returns:
      the value of the participantIdPresent record component
    • participantId

      public long participantId()
      Returns the value of the participantId record component.
      Returns:
      the value of the participantId record component
    • eventType

      public byte eventType()
      Returns the value of the eventType record component.
      Returns:
      the value of the eventType record component
    • updateMask

      public byte updateMask()
      Returns the value of the updateMask record component.
      Returns:
      the value of the updateMask record component