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 -
Constructor Summary
ConstructorsConstructorDescriptionAccountMetadataEvent(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 aAccountMetadataEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theaccountHirecord component.longReturns the value of theaccountLorecord component.intcurrency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.byteReturns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.intledgerId()Returns the value of theledgerIdrecord component.longReturns the value of thenewLimitHighrecord component.longReturns the value of thenewLimitLowrecord component.longReturns the value of theoldLimitHighrecord component.longReturns the value of theoldLimitLowrecord component.longReturns the value of theparticipantIdrecord component.booleanReturns the value of theparticipantIdPresentrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.byteReturns the value of theupdateMaskrecord component.
-
Field Details
-
EVENT_CREATE
public static final byte EVENT_CREATE- See Also:
-
EVENT_UPDATE
public static final byte EVENT_UPDATE- See Also:
-
-
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 aAccountMetadataEventrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentledgerId- the value for theledgerIdrecord componentcurrency- the value for thecurrencyrecord componentaccountHi- the value for theaccountHirecord componentaccountLo- the value for theaccountLorecord componentoldLimitLow- the value for theoldLimitLowrecord componentoldLimitHigh- the value for theoldLimitHighrecord componentnewLimitLow- the value for thenewLimitLowrecord componentnewLimitHigh- the value for thenewLimitHighrecord componentparticipantIdPresent- the value for theparticipantIdPresentrecord componentparticipantId- the value for theparticipantIdrecord componenteventType- the value for theeventTyperecord componentupdateMask- the value for theupdateMaskrecord component
-
-
Method Details
-
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 with '=='. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
ledgerId
public int ledgerId()Returns the value of theledgerIdrecord component.- Returns:
- the value of the
ledgerIdrecord component
-
currency
public int currency()Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
accountHi
public long accountHi()Returns the value of theaccountHirecord component.- Returns:
- the value of the
accountHirecord component
-
accountLo
public long accountLo()Returns the value of theaccountLorecord component.- Returns:
- the value of the
accountLorecord component
-
oldLimitLow
public long oldLimitLow()Returns the value of theoldLimitLowrecord component.- Returns:
- the value of the
oldLimitLowrecord component
-
oldLimitHigh
public long oldLimitHigh()Returns the value of theoldLimitHighrecord component.- Returns:
- the value of the
oldLimitHighrecord component
-
newLimitLow
public long newLimitLow()Returns the value of thenewLimitLowrecord component.- Returns:
- the value of the
newLimitLowrecord component
-
newLimitHigh
public long newLimitHigh()Returns the value of thenewLimitHighrecord component.- Returns:
- the value of the
newLimitHighrecord component
-
participantIdPresent
public boolean participantIdPresent()Returns the value of theparticipantIdPresentrecord component.- Returns:
- the value of the
participantIdPresentrecord component
-
participantId
public long participantId()Returns the value of theparticipantIdrecord component.- Returns:
- the value of the
participantIdrecord component
-
eventType
public byte eventType()Returns the value of theeventTyperecord component.- Returns:
- the value of the
eventTyperecord component
-
updateMask
public byte updateMask()Returns the value of theupdateMaskrecord component.- Returns:
- the value of the
updateMaskrecord component
-