Record Class SmsInboxEntry
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.domain.sms.SmsInboxEntry
- Record Components:
to- recipient.text- text of the message.sentAt- when the sender recorded it.
A text message a development sender recorded instead of sending it, as the development inbox shows it.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSmsInboxEntry(PhoneNumber to, String text, Instant sentAt) Validates the entry. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sentAt()Returns the value of thesentAtrecord component.text()Returns the value of thetextrecord component.to()Returns the value of thetorecord component.toString()Describes the entry without the text, which carries a one-time code.
-
Field Details
-
Constructor Details
-
SmsInboxEntry
Validates the entry.- Throws:
IllegalArgumentException- if any component isnull.
-
-
Method Details
-
toString
Describes the entry without the text, which carries a one-time code. -
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). -
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
sentAt
Returns the value of thesentAtrecord component.- Returns:
- the value of the
sentAtrecord component
-