Record Class TaskPlan.PatternPlan
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.task.TaskPlan.PatternPlan
- Enclosing class:
TaskPlan
-
Constructor Summary
ConstructorsConstructorDescriptionPatternPlan(boolean root, long iterations, Map<Integer, Map<ResourceKey, Long>> ingredients) Creates an instance of aPatternPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<Integer, Map<ResourceKey, Long>> Returns the value of theingredientsrecord component.longReturns the value of theiterationsrecord component.booleanroot()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatternPlan
Creates an instance of aPatternPlanrecord class.- Parameters:
root- the value for therootrecord componentiterations- the value for theiterationsrecord componentingredients- the value for theingredientsrecord 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. -
root
public boolean root()Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
iterations
public long iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
ingredients
Returns the value of theingredientsrecord component.- Returns:
- the value of the
ingredientsrecord component
-