Record Class AbstractInventoryModule.InventoryActionResult
java.lang.Object
java.lang.Record
com.zenith.module.impl.AbstractInventoryModule.InventoryActionResult
- Enclosing class:
AbstractInventoryModule
public static record AbstractInventoryModule.InventoryActionResult(AbstractInventoryModule.ActionState state, RequestFuture inventoryActionFuture, int expectedDelay)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryActionResult(AbstractInventoryModule.ActionState state, RequestFuture inventoryActionFuture, int expectedDelay) Creates an instance of aInventoryActionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpectedDelayrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinventoryActionFuturerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InventoryActionResult
public InventoryActionResult(AbstractInventoryModule.ActionState state, RequestFuture inventoryActionFuture, int expectedDelay) Creates an instance of aInventoryActionResultrecord class.- Parameters:
state- the value for thestaterecord componentinventoryActionFuture- the value for theinventoryActionFuturerecord componentexpectedDelay- the value for theexpectedDelayrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
inventoryActionFuture
Returns the value of theinventoryActionFuturerecord component.- Returns:
- the value of the
inventoryActionFuturerecord component
-
expectedDelay
public int expectedDelay()Returns the value of theexpectedDelayrecord component.- Returns:
- the value of the
expectedDelayrecord component
-