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 String
The field for thedomain
record component.private final EmailSource
The field for theemailSource
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEmailPreparation
(String domain, EmailSource emailSource) Creates an instance of aEmailPreparation
record class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()
Returns the value of thedomain
record component.Returns the value of theemailSource
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
-
domain
The field for thedomain
record component. -
emailSource
The field for theemailSource
record component.
-
-
Constructor Details
-
EmailPreparation
Creates an instance of aEmailPreparation
record class.- Parameters:
domain
- the value for thedomain
record componentemailSource
- the value for theemailSource
record 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 thedomain
record component.- Returns:
- the value of the
domain
record component
-
emailSource
Returns the value of theemailSource
record component.- Returns:
- the value of the
emailSource
record component
-