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.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
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 '=='. -
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
-