Record Class ContactController.ContactResult
java.lang.Object
java.lang.Record
page.codeberg.friedolyn.gui.controllers.ContactController.ContactResult
- Record Components:
email- The message that was sent to the developers.contactMethods- The user's contact information.
- Enclosing class:
ContactController
public static record ContactController.ContactResult(String email, ContactMethods contactMethods)
extends Record
The user's input in the contact window.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContactMethodsThe field for thecontactMethodsrecord component.private final StringThe field for theemailrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContactResult(String email, ContactMethods contactMethods) Creates an instance of aContactResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontactMethodsrecord component.email()Returns the value of theemailrecord 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
-
email
-
contactMethods
The field for thecontactMethodsrecord component.
-
-
Constructor Details
-
ContactResult
Creates an instance of aContactResultrecord class.- Parameters:
email- the value for theemailrecord componentcontactMethods- the value for thecontactMethodsrecord 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). -
email
-
contactMethods
Returns the value of thecontactMethodsrecord component.- Returns:
- the value of the
contactMethodsrecord component
-