Record Class ContactController.InitialisationParameters
java.lang.Object
java.lang.Record
page.codeberg.friedolyn.gui.controllers.ContactController.InitialisationParameters
- Record Components:
configuration- Will be used for authentication with the uni's e-mail server and to store the user's contact information.contactRequestType- Why the user is contacting the developers.
- Enclosing class:
ContactController
public static record ContactController.InitialisationParameters(Configuration configuration, Friedolyn.ContactRequest contactRequestType)
extends Record
The information necessary to populate the contact window.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConfigurationThe field for theconfigurationrecord component.private final Friedolyn.ContactRequestThe field for thecontactRequestTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInitialisationParameters(Configuration configuration, Friedolyn.ContactRequest contactRequestType) Creates an instance of aInitialisationParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.Returns the value of thecontactRequestTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
configuration
The field for theconfigurationrecord component. -
contactRequestType
The field for thecontactRequestTyperecord component.
-
-
Constructor Details
-
InitialisationParameters
public InitialisationParameters(Configuration configuration, Friedolyn.ContactRequest contactRequestType) Creates an instance of aInitialisationParametersrecord class.- Parameters:
configuration- the value for theconfigurationrecord componentcontactRequestType- the value for thecontactRequestTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
contactRequestType
Returns the value of thecontactRequestTyperecord component.- Returns:
- the value of the
contactRequestTyperecord component
-