Record Class CraftingMonitorSyncTask
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.network.craftingmonitor.CraftingMonitorSyncTask
public record CraftingMonitorSyncTask(UUID id, ICraftingRequestInfo requestInfo, int quantity, long startTime, int completionPercentage, List<ICraftingMonitorElement> elements)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCraftingMonitorSyncTask(UUID id, ICraftingRequestInfo requestInfo, int quantity, long startTime, int completionPercentage, List<ICraftingMonitorElement> elements) Creates an instance of aCraftingMonitorSyncTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompletionPercentagerecord component.elements()Returns the value of theelementsrecord 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.intquantity()Returns the value of thequantityrecord component.Returns the value of therequestInforecord component.longReturns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CraftingMonitorSyncTask
public CraftingMonitorSyncTask(UUID id, ICraftingRequestInfo requestInfo, int quantity, long startTime, int completionPercentage, List<ICraftingMonitorElement> elements) Creates an instance of aCraftingMonitorSyncTaskrecord class.- Parameters:
id- the value for theidrecord componentrequestInfo- the value for therequestInforecord componentquantity- the value for thequantityrecord componentstartTime- the value for thestartTimerecord componentcompletionPercentage- the value for thecompletionPercentagerecord componentelements- the value for theelementsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
requestInfo
Returns the value of therequestInforecord component.- Returns:
- the value of the
requestInforecord component
-
quantity
public int quantity()Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
completionPercentage
public int completionPercentage()Returns the value of thecompletionPercentagerecord component.- Returns:
- the value of the
completionPercentagerecord component
-
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-