java.lang.Object
java.lang.Record
it.auties.whatsapp.model.response.NewsletterResponse
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NewsletterThe field for thenewsletterrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNewsletterResponse(Newsletter newsletter) Creates an instance of aNewsletterResponserecord class.NewsletterResponse(Map<String, Newsletter> json) -
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.Returns the value of thenewsletterrecord component.static Optional<NewsletterResponse> final StringtoString()Returns a string representation of this record class.
-
Field Details
-
newsletter
The field for thenewsletterrecord component.
-
-
Constructor Details
-
NewsletterResponse
NewsletterResponse(Map<String, Newsletter> json) -
NewsletterResponse
Creates an instance of aNewsletterResponserecord class.- Parameters:
newsletter- the value for thenewsletterrecord component
-
-
Method Details
-
ofJson
-
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). -
newsletter
Returns the value of thenewsletterrecord component.- Returns:
- the value of the
newsletterrecord component
-