Record Class GlyphPositions.AnswerButton
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.GlyphPositions.AnswerButton
- Enclosing class:
GlyphPositions
public static record GlyphPositions.AnswerButton(int topButtonY, int bottomButtonY, int leftButtonX, int rightButtonX, int height)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnswerButton(int topButtonY, int bottomButtonY, int leftButtonX, int rightButtonX, int height) Creates an instance of aAnswerButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebottomButtonYrecord 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 theleftButtonXrecord component.intReturns the value of therightButtonXrecord component.intReturns the value of thetopButtonYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnswerButton
public AnswerButton(int topButtonY, int bottomButtonY, int leftButtonX, int rightButtonX, int height) Creates an instance of aAnswerButtonrecord class.- Parameters:
topButtonY- the value for thetopButtonYrecord componentbottomButtonY- the value for thebottomButtonYrecord componentleftButtonX- the value for theleftButtonXrecord componentrightButtonX- the value for therightButtonXrecord 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 '=='. -
topButtonY
public int topButtonY()Returns the value of thetopButtonYrecord component.- Returns:
- the value of the
topButtonYrecord component
-
bottomButtonY
public int bottomButtonY()Returns the value of thebottomButtonYrecord component.- Returns:
- the value of the
bottomButtonYrecord component
-
leftButtonX
public int leftButtonX()Returns the value of theleftButtonXrecord component.- Returns:
- the value of the
leftButtonXrecord component
-
rightButtonX
public int rightButtonX()Returns the value of therightButtonXrecord component.- Returns:
- the value of the
rightButtonXrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-