Record Class ModelAddressLine
java.lang.Object
java.lang.Record
com.jsql.view.swing.panel.address.ModelAddressLine
public record ModelAddressLine(String request, AbstractMethodInjection method, String i18n, AtomicReference<JRadioButton> radio, String placeholder, AtomicReference<JTextField> textfield)
extends Record
Util class to create GUI dynamically
-
Constructor Summary
ConstructorsConstructorDescriptionModelAddressLine(String request, AbstractMethodInjection method, String i18n, AtomicReference<JRadioButton> radio, String placeholder, AtomicReference<JTextField> textfield) Creates an instance of aModelAddressLinerecord 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.i18n()Returns the value of thei18nrecord component.method()Returns the value of themethodrecord component.Returns the value of theplaceholderrecord component.radio()Returns the value of theradiorecord component.request()Returns the value of therequestrecord component.Returns the value of thetextfieldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelAddressLine
public ModelAddressLine(String request, AbstractMethodInjection method, String i18n, AtomicReference<JRadioButton> radio, String placeholder, AtomicReference<JTextField> textfield) Creates an instance of aModelAddressLinerecord class.- Parameters:
request- the value for therequestrecord componentmethod- the value for themethodrecord componenti18n- the value for thei18nrecord componentradio- the value for theradiorecord componentplaceholder- the value for theplaceholderrecord componenttextfield- the value for thetextfieldrecord 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 withObjects::equals(Object,Object). -
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
i18n
Returns the value of thei18nrecord component.- Returns:
- the value of the
i18nrecord component
-
radio
Returns the value of theradiorecord component.- Returns:
- the value of the
radiorecord component
-
placeholder
Returns the value of theplaceholderrecord component.- Returns:
- the value of the
placeholderrecord component
-
textfield
Returns the value of thetextfieldrecord component.- Returns:
- the value of the
textfieldrecord component
-