Record Class RecipeCodeHelper.DateResult
java.lang.Object
java.lang.Record
zombie.scripting.logic.RecipeCodeHelper.DateResult
- Enclosing class:
RecipeCodeHelper
-
Constructor Summary
ConstructorsConstructorDescriptionDateResult(int year, int month) Creates an instance of aDateResultrecord 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.intmonth()Returns the value of themonthrecord component.final StringtoString()Returns a string representation of this record class.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
DateResult
public DateResult(int year, int month) Creates an instance of aDateResultrecord class.- Parameters:
year- the value for theyearrecord componentmonth- the value for themonthrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
year
public int year()Returns the value of theyearrecord component.- Returns:
- the value of the
yearrecord component
-
month
public int month()Returns the value of themonthrecord component.- Returns:
- the value of the
monthrecord component
-