Record Class TaskStatus.TaskInfo
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.status.TaskStatus.TaskInfo
- Enclosing class:
TaskStatus
public static record TaskStatus.TaskInfo(TaskId id, ResourceKey resource, long amount, long startTime)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTaskInfo(TaskId id, ResourceKey resource, long amount, long startTime) Creates an instance of aTaskInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord 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.resource()Returns the value of theresourcerecord component.longReturns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskInfo
Creates an instance of aTaskInforecord class.- Parameters:
id- the value for theidrecord componentresource- the value for theresourcerecord componentamount- the value for theamountrecord componentstartTime- the value for thestartTimerecord 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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-