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 String
The field for theemail
record component.private final String
The field for therandomValue
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEmailWithRandomValue
(String email, String randomValue) Creates an instance of aEmailWithRandomValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionemail()
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.Returns the value of therandomValue
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
email
The field for theemail
record component. -
randomValue
The field for therandomValue
record component.
-
-
Constructor Details
-
EmailWithRandomValue
Creates an instance of aEmailWithRandomValue
record class.- Parameters:
email
- the value for theemail
record componentrandomValue
- the value for therandomValue
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)
. -
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
randomValue
Returns the value of therandomValue
record component.- Returns:
- the value of the
randomValue
record component
-