Record Class BatchOperations.TransactionRequest
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.BatchOperations.TransactionRequest
- Enclosing interface:
BatchOperations
public static record BatchOperations.TransactionRequest(Account source, Account target, EconomyContext context, Currency currency, BigDecimal amount, BatchOperations.Action action, net.kyori.adventure.text.Component reason)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionRequest(Account source, Account target, EconomyContext context, Currency currency, BigDecimal amount, BatchOperations.Action action, net.kyori.adventure.text.Component reason) Creates an instance of aTransactionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.amount()Returns the value of theamountrecord component.context()Returns the value of thecontextrecord 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.net.kyori.adventure.text.Componentreason()Returns the value of thereasonrecord component.source()Returns the value of thesourcerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransactionRequest
public TransactionRequest(Account source, Account target, EconomyContext context, Currency currency, BigDecimal amount, BatchOperations.Action action, net.kyori.adventure.text.Component reason) Creates an instance of aTransactionRequestrecord class.- Parameters:
source- the value for thesourcerecord componenttarget- the value for thetargetrecord componentcontext- the value for thecontextrecord componentcurrency- the value for thecurrencyrecord componentamount- the value for theamountrecord componentaction- the value for theactionrecord componentreason- the value for thereasonrecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord 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
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
reason
public net.kyori.adventure.text.Component reason()Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-