Record Class TextField
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.TextField
public record TextField(ru.dragonestia.msb3.resource.glyph.GlyphImage field1, ru.dragonestia.msb3.resource.glyph.GlyphImage field2, ru.dragonestia.msb3.resource.glyph.GlyphImage field3, ru.dragonestia.msb3.resource.glyph.GlyphImage field4)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextField(ru.dragonestia.msb3.resource.glyph.GlyphImage field1, ru.dragonestia.msb3.resource.glyph.GlyphImage field2, ru.dragonestia.msb3.resource.glyph.GlyphImage field3, ru.dragonestia.msb3.resource.glyph.GlyphImage field4) Creates an instance of aTextFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.ru.dragonestia.msb3.resource.glyph.GlyphImagefield1()Returns the value of thefield1record component.ru.dragonestia.msb3.resource.glyph.GlyphImagefield2()Returns the value of thefield2record component.ru.dragonestia.msb3.resource.glyph.GlyphImagefield3()Returns the value of thefield3record component.ru.dragonestia.msb3.resource.glyph.GlyphImagefield4()Returns the value of thefield4record component.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
-
TextField
public TextField(ru.dragonestia.msb3.resource.glyph.GlyphImage field1, ru.dragonestia.msb3.resource.glyph.GlyphImage field2, ru.dragonestia.msb3.resource.glyph.GlyphImage field3, ru.dragonestia.msb3.resource.glyph.GlyphImage field4) Creates an instance of aTextFieldrecord class.- Parameters:
field1- the value for thefield1record componentfield2- the value for thefield2record componentfield3- the value for thefield3record componentfield4- the value for thefield4record 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). -
field1
public ru.dragonestia.msb3.resource.glyph.GlyphImage field1()Returns the value of thefield1record component.- Returns:
- the value of the
field1record component
-
field2
public ru.dragonestia.msb3.resource.glyph.GlyphImage field2()Returns the value of thefield2record component.- Returns:
- the value of the
field2record component
-
field3
public ru.dragonestia.msb3.resource.glyph.GlyphImage field3()Returns the value of thefield3record component.- Returns:
- the value of the
field3record component
-
field4
public ru.dragonestia.msb3.resource.glyph.GlyphImage field4()Returns the value of thefield4record component.- Returns:
- the value of the
field4record component
-