Record Class EmailWithRandomValue
java.lang.Object
java.lang.Record
com.digicert.validation.methods.email.prepare.EmailWithRandomValue
- Record Components:
email- The email address.The `email` parameter represents the email address that is being validated. It is a string that should conform to standard email format rules.
randomValue- The random value that was sent to the email address.The `randomValue` parameter is a string that contains a randomly generated value sent to the email address. This value is used as a verification code to confirm that the email address is valid and accessible by the intended recipient.
This class is used to store the email address and the random value that was sent to the email address.
The `EmailWithRandomValue` class is a record that encapsulates an email address and a corresponding random value. This random value is used in the email validation process in order verify the ownership of an email address.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theemailrecord component.private final StringThe field for therandomValuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEmailWithRandomValue(String email, String randomValue) Creates an instance of aEmailWithRandomValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionemail()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.Returns the value of therandomValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
email
The field for theemailrecord component. -
randomValue
The field for therandomValuerecord component.
-
-
Constructor Details
-
EmailWithRandomValue
Creates an instance of aEmailWithRandomValuerecord class.- Parameters:
email- the value for theemailrecord componentrandomValue- the value for therandomValuerecord 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). -
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
randomValue
Returns the value of therandomValuerecord component.- Returns:
- the value of the
randomValuerecord component
-