Record Class RecipeValidationContext.Impl
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.component.RecipeValidationContext.Impl
- All Implemented Interfaces:
RecipeValidationContext,RecipeMatchContext,KubeRecipeContext,RecipeLikeContext
- Enclosing interface:
RecipeValidationContext
public static record RecipeValidationContext.Impl(KubeRecipe recipe, ErrorStack errors)
extends Record
implements RecipeValidationContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.latvian.mods.kubejs.recipe.component.RecipeValidationContext
RecipeValidationContext.Impl -
Constructor Summary
ConstructorsConstructorDescriptionImpl(KubeRecipe recipe, ErrorStack errors) Creates an instance of aImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.recipe()Returns the value of thereciperecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.recipe.KubeRecipeContext
ops, registries
-
Constructor Details
-
Impl
Creates an instance of aImplrecord class.- Parameters:
recipe- the value for thereciperecord componenterrors- the value for theerrorsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
recipe
Returns the value of thereciperecord component.- Specified by:
recipein interfaceKubeRecipeContext- Specified by:
recipein interfaceRecipeLikeContext- Returns:
- the value of the
reciperecord component
-
errors
Returns the value of theerrorsrecord component.- Specified by:
errorsin interfaceRecipeValidationContext- Returns:
- the value of the
errorsrecord component
-