Record Class PhysicalCurrency.PhysicalResult
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.PhysicalCurrency.PhysicalResult
- Enclosing interface:
PhysicalCurrency
public static record PhysicalCurrency.PhysicalResult(TransactionResult transaction, Collection<org.bukkit.inventory.ItemStack> unacceptedItems)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalResult(TransactionResult transaction, Collection<org.bukkit.inventory.ItemStack> unacceptedItems) Creates an instance of aPhysicalResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionrecord component.Collection<org.bukkit.inventory.ItemStack> Returns the value of theunacceptedItemsrecord component.
-
Constructor Details
-
PhysicalResult
public PhysicalResult(TransactionResult transaction, Collection<org.bukkit.inventory.ItemStack> unacceptedItems) Creates an instance of aPhysicalResultrecord class.- Parameters:
transaction- the value for thetransactionrecord componentunacceptedItems- the value for theunacceptedItemsrecord 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). -
transaction
Returns the value of thetransactionrecord component.- Returns:
- the value of the
transactionrecord component
-
unacceptedItems
Returns the value of theunacceptedItemsrecord component.- Returns:
- the value of the
unacceptedItemsrecord component
-