Record Class EmailPreparation
java.lang.Object
java.lang.Record
com.digicert.validation.methods.email.prepare.EmailPreparation
- Record Components:
domain- The domain to be validated.emailSource- The source of the email for validation.
Represents the preparation details for email validation.
This record encapsulates the necessary details required for preparing an email validation process. The domain field represents the domain name that needs to be validated, ensuring that the email originates from a legitimate source. The emailSource field indicates the source of the email, which could be used to determine the authenticity and origin of the email for validation purposes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedomainrecord component.private final EmailSourceThe field for theemailSourcerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEmailPreparation(String domain, EmailSource emailSource) Creates an instance of aEmailPreparationrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.Returns the value of theemailSourcerecord 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
-
domain
The field for thedomainrecord component. -
emailSource
The field for theemailSourcerecord component.
-
-
Constructor Details
-
EmailPreparation
Creates an instance of aEmailPreparationrecord class.- Parameters:
domain- the value for thedomainrecord componentemailSource- the value for theemailSourcerecord 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). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
emailSource
Returns the value of theemailSourcerecord component.- Returns:
- the value of the
emailSourcerecord component
-