Record Class Button
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.Button
public record Button(ru.dragonestia.msb3.resource.glyph.GlyphImage button1, ru.dragonestia.msb3.resource.glyph.GlyphImage button2, ru.dragonestia.msb3.resource.glyph.GlyphImage button3, ru.dragonestia.msb3.resource.glyph.GlyphImage button4)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionButton(ru.dragonestia.msb3.resource.glyph.GlyphImage button1, ru.dragonestia.msb3.resource.glyph.GlyphImage button2, ru.dragonestia.msb3.resource.glyph.GlyphImage button3, ru.dragonestia.msb3.resource.glyph.GlyphImage button4) Creates an instance of aButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionru.dragonestia.msb3.resource.glyph.GlyphImagebutton1()Returns the value of thebutton1record component.ru.dragonestia.msb3.resource.glyph.GlyphImagebutton2()Returns the value of thebutton2record component.ru.dragonestia.msb3.resource.glyph.GlyphImagebutton3()Returns the value of thebutton3record component.ru.dragonestia.msb3.resource.glyph.GlyphImagebutton4()Returns the value of thebutton4record component.final booleanIndicates whether some other object is "equal to" this one.ru.dragonestia.msb3.resource.glyph.GlyphImageget(ButtonNumber number) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Button
public Button(ru.dragonestia.msb3.resource.glyph.GlyphImage button1, ru.dragonestia.msb3.resource.glyph.GlyphImage button2, ru.dragonestia.msb3.resource.glyph.GlyphImage button3, ru.dragonestia.msb3.resource.glyph.GlyphImage button4) Creates an instance of aButtonrecord class.- Parameters:
button1- the value for thebutton1record componentbutton2- the value for thebutton2record componentbutton3- the value for thebutton3record componentbutton4- the value for thebutton4record component
-
-
Method Details
-
get
-
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). -
button1
public ru.dragonestia.msb3.resource.glyph.GlyphImage button1()Returns the value of thebutton1record component.- Returns:
- the value of the
button1record component
-
button2
public ru.dragonestia.msb3.resource.glyph.GlyphImage button2()Returns the value of thebutton2record component.- Returns:
- the value of the
button2record component
-
button3
public ru.dragonestia.msb3.resource.glyph.GlyphImage button3()Returns the value of thebutton3record component.- Returns:
- the value of the
button3record component
-
button4
public ru.dragonestia.msb3.resource.glyph.GlyphImage button4()Returns the value of thebutton4record component.- Returns:
- the value of the
button4record component
-