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 ContactMethods
The field for thecontactMethods
record component.private final String
The field for theemail
record component. -
Constructor Summary
ConstructorsConstructorDescriptionContactResult
(String email, ContactMethods contactMethods) Creates an instance of aContactResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontactMethods
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
email
-
contactMethods
The field for thecontactMethods
record component.
-
-
Constructor Details
-
ContactResult
Creates an instance of aContactResult
record class.- Parameters:
email
- the value for theemail
record componentcontactMethods
- the value for thecontactMethods
record 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 thecontactMethods
record component.- Returns:
- the value of the
contactMethods
record component
-