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
ConstructorDescriptionCraftingMonitorSyncTask
(UUID id, ICraftingRequestInfo requestInfo, int quantity, long startTime, int completionPercentage, List<ICraftingMonitorElement> elements) Creates an instance of aCraftingMonitorSyncTask
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecompletionPercentage
record component.elements()
Returns the value of theelements
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.int
quantity()
Returns the value of thequantity
record component.Returns the value of therequestInfo
record component.long
Returns the value of thestartTime
record component.final String
toString()
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 aCraftingMonitorSyncTask
record class.- Parameters:
id
- the value for theid
record componentrequestInfo
- the value for therequestInfo
record componentquantity
- the value for thequantity
record componentstartTime
- the value for thestartTime
record componentcompletionPercentage
- the value for thecompletionPercentage
record componentelements
- the value for theelements
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
requestInfo
Returns the value of therequestInfo
record component.- Returns:
- the value of the
requestInfo
record component
-
quantity
public int quantity()Returns the value of thequantity
record component.- Returns:
- the value of the
quantity
record component
-
startTime
public long startTime()Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
completionPercentage
public int completionPercentage()Returns the value of thecompletionPercentage
record component.- Returns:
- the value of the
completionPercentage
record component
-
elements
Returns the value of theelements
record component.- Returns:
- the value of the
elements
record component
-