Record Class EscrowService.Escrow
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.EscrowService.Escrow
- Enclosing interface:
EscrowService
public static record EscrowService.Escrow(UUID id, Account source, Currency currency, BigDecimal amount, EconomyContext context, Instant createdAt, Instant timeout, EscrowService.EscrowState state)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEscrow(UUID id, Account source, Currency currency, BigDecimal amount, EconomyContext context, Instant createdAt, Instant timeout, EscrowService.EscrowState state) Creates an instance of aEscrowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.context()Returns the value of thecontextrecord component.Returns the value of thecreatedAtrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.source()Returns the value of thesourcerecord component.state()Returns the value of thestaterecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Escrow
public Escrow(UUID id, Account source, Currency currency, BigDecimal amount, EconomyContext context, Instant createdAt, Instant timeout, EscrowService.EscrowState state) Creates an instance of aEscrowrecord class.- Parameters:
id- the value for theidrecord componentsource- the value for thesourcerecord componentcurrency- the value for thecurrencyrecord componentamount- the value for theamountrecord componentcontext- the value for thecontextrecord componentcreatedAt- the value for thecreatedAtrecord componenttimeout- the value for thetimeoutrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-