Record Class VerificationMails.Result
java.lang.Object
java.lang.Record
com.iizix.server.user.VerificationMails.Result
- Record Components:
outcome- What became of the request.why- The reason nothing was sent, in plain words for the log; null when sent.created- true when the address had no pending verification and the details were written.
- Enclosing class:
VerificationMails
public static record VerificationMails.Result(VerificationMails.Outcome outcome, String why, boolean created) extends Record
The result: the outcome, why nothing was sent (null when sent), and whether the pending verification was created by this request.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionResult(VerificationMails.Outcome outcome, String why, boolean created) Creates an instance of aResultrecord class.Method Summary
Modifier and TypeMethodDescriptionbooleancreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSent()Checks if the mail went.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.why()Returns the value of thewhyrecord component.
Constructor Details
Method Details
isSent
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.outcome
why
created