Record Class GlyphPositions.AnswerField
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.GlyphPositions.AnswerField
- Enclosing class:
GlyphPositions
public static record GlyphPositions.AnswerField(int topFieldY, int bottomFieldY, int leftFieldX, int rightFieldX, int height)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnswerField(int topFieldY, int bottomFieldY, int leftFieldX, int rightFieldX, int height) Creates an instance of aAnswerFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebottomFieldYrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intReturns the value of theleftFieldXrecord component.intReturns the value of therightFieldXrecord component.intReturns the value of thetopFieldYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnswerField
public AnswerField(int topFieldY, int bottomFieldY, int leftFieldX, int rightFieldX, int height) Creates an instance of aAnswerFieldrecord class.- Parameters:
topFieldY- the value for thetopFieldYrecord componentbottomFieldY- the value for thebottomFieldYrecord componentleftFieldX- the value for theleftFieldXrecord componentrightFieldX- the value for therightFieldXrecord componentheight- the value for theheightrecord 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 with '=='. -
topFieldY
public int topFieldY()Returns the value of thetopFieldYrecord component.- Returns:
- the value of the
topFieldYrecord component
-
bottomFieldY
public int bottomFieldY()Returns the value of thebottomFieldYrecord component.- Returns:
- the value of the
bottomFieldYrecord component
-
leftFieldX
public int leftFieldX()Returns the value of theleftFieldXrecord component.- Returns:
- the value of the
leftFieldXrecord component
-
rightFieldX
public int rightFieldX()Returns the value of therightFieldXrecord component.- Returns:
- the value of the
rightFieldXrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-