Record Class ErosionObjSprites.Entry
java.lang.Object
java.lang.Record
zombie.erosion.obj.ErosionObjSprites.Entry
- Enclosing class:
ErosionObjSprites
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(int stage, int section, int season) Creates an instance of aEntryrecord 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.intseason()Returns the value of theseasonrecord component.intsection()Returns the value of thesectionrecord component.intstage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(int stage, int section, int season) Creates an instance of aEntryrecord class.- Parameters:
stage- the value for thestagerecord componentsection- the value for thesectionrecord componentseason- the value for theseasonrecord 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. -
stage
public int stage()Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
section
public int section()Returns the value of thesectionrecord component.- Returns:
- the value of the
sectionrecord component
-
season
public int season()Returns the value of theseasonrecord component.- Returns:
- the value of the
seasonrecord component
-