Package com.tuladb
Record Class Models.AccountCreate
java.lang.Object
java.lang.Record
com.tuladb.Models.AccountCreate
- Enclosing class:
Models
public static record Models.AccountCreate(long accountHi, long accountLo, int ledgerId, int currency, short tier, short flags, long limitLow, long limitHigh, boolean participantIdPresent, long participantId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAccountCreate(long accountHi, long accountLo, int ledgerId, int currency, short tier, short flags, long limitLow, long limitHigh) AccountCreate(long accountHi, long accountLo, int ledgerId, int currency, short tier, short flags, long limitLow, long limitHigh, boolean participantIdPresent, long participantId) Creates an instance of aAccountCreaterecord 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.shortflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intledgerId()Returns the value of theledgerIdrecord component.longReturns the value of thelimitHighrecord component.longlimitLow()Returns the value of thelimitLowrecord component.longReturns the value of theparticipantIdrecord component.booleanReturns the value of theparticipantIdPresentrecord component.shorttier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountCreate
public AccountCreate(long accountHi, long accountLo, int ledgerId, int currency, short tier, short flags, long limitLow, long limitHigh) -
AccountCreate
public AccountCreate(long accountHi, long accountLo, int ledgerId, int currency, short tier, short flags, long limitLow, long limitHigh, boolean participantIdPresent, long participantId) Creates an instance of aAccountCreaterecord class.- Parameters:
accountHi- the value for theaccountHirecord componentaccountLo- the value for theaccountLorecord componentledgerId- the value for theledgerIdrecord componentcurrency- the value for thecurrencyrecord componenttier- the value for thetierrecord componentflags- the value for theflagsrecord componentlimitLow- the value for thelimitLowrecord componentlimitHigh- the value for thelimitHighrecord componentparticipantIdPresent- the value for theparticipantIdPresentrecord componentparticipantId- the value for theparticipantIdrecord 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 '=='. -
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
-
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
-
tier
public short tier()Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
flags
public short flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
limitLow
public long limitLow()Returns the value of thelimitLowrecord component.- Returns:
- the value of the
limitLowrecord component
-
limitHigh
public long limitHigh()Returns the value of thelimitHighrecord component.- Returns:
- the value of the
limitHighrecord 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
-