Record Class TaskStatus.Item
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.status.TaskStatus.Item
- Enclosing class:
TaskStatus
public static record TaskStatus.Item(TaskStatus.ItemType type, ResourceKey resource, long stored, long missing, long processing, long scheduled, long crafting)
extends Record
-
Constructor Summary
ConstructorDescriptionItem
(TaskStatus.ItemType type, ResourceKey resource, long stored, long missing, long processing, long scheduled, long crafting) Creates an instance of aItem
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
crafting()
Returns the value of thecrafting
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.long
missing()
Returns the value of themissing
record component.long
Returns the value of theprocessing
record component.resource()
Returns the value of theresource
record component.long
Returns the value of thescheduled
record component.long
stored()
Returns the value of thestored
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
Item
public Item(TaskStatus.ItemType type, ResourceKey resource, long stored, long missing, long processing, long scheduled, long crafting) Creates an instance of aItem
record class.- Parameters:
type
- the value for thetype
record componentresource
- the value for theresource
record componentstored
- the value for thestored
record componentmissing
- the value for themissing
record componentprocessing
- the value for theprocessing
record componentscheduled
- the value for thescheduled
record componentcrafting
- the value for thecrafting
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 '=='. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
resource
Returns the value of theresource
record component.- Returns:
- the value of the
resource
record component
-
stored
public long stored()Returns the value of thestored
record component.- Returns:
- the value of the
stored
record component
-
missing
public long missing()Returns the value of themissing
record component.- Returns:
- the value of the
missing
record component
-
processing
public long processing()Returns the value of theprocessing
record component.- Returns:
- the value of the
processing
record component
-
scheduled
public long scheduled()Returns the value of thescheduled
record component.- Returns:
- the value of the
scheduled
record component
-
crafting
public long crafting()Returns the value of thecrafting
record component.- Returns:
- the value of the
crafting
record component
-