Package io.mateu.dtos
Record Class CookieConsentDto
java.lang.Object
java.lang.Record
io.mateu.dtos.CookieConsentDto
- All Implemented Interfaces:
ComponentMetadataDto
public record CookieConsentDto(CookieConsentPositionDto position, String cookieName, String message, String theme, String learnMore, String learnMoreLink, String dismiss)
extends Record
implements ComponentMetadataDto
Metadata for a html element
-
Constructor Summary
ConstructorsConstructorDescriptionCookieConsentDto(CookieConsentPositionDto position, String cookieName, String message, String theme, String learnMore, String learnMoreLink, String dismiss) Creates an instance of aCookieConsentDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecookieNamerecord component.dismiss()Returns the value of thedismissrecord 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 thelearnMorerecord component.Returns the value of thelearnMoreLinkrecord component.message()Returns the value of themessagerecord component.position()Returns the value of thepositionrecord component.theme()Returns the value of thethemerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CookieConsentDto
public CookieConsentDto(CookieConsentPositionDto position, String cookieName, String message, String theme, String learnMore, String learnMoreLink, String dismiss) Creates an instance of aCookieConsentDtorecord class.- Parameters:
position- the value for thepositionrecord componentcookieName- the value for thecookieNamerecord componentmessage- the value for themessagerecord componenttheme- the value for thethemerecord componentlearnMore- the value for thelearnMorerecord componentlearnMoreLink- the value for thelearnMoreLinkrecord componentdismiss- the value for thedismissrecord 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). -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
cookieName
Returns the value of thecookieNamerecord component.- Returns:
- the value of the
cookieNamerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
theme
Returns the value of thethemerecord component.- Returns:
- the value of the
themerecord component
-
learnMore
Returns the value of thelearnMorerecord component.- Returns:
- the value of the
learnMorerecord component
-
learnMoreLink
Returns the value of thelearnMoreLinkrecord component.- Returns:
- the value of the
learnMoreLinkrecord component
-
dismiss
Returns the value of thedismissrecord component.- Returns:
- the value of the
dismissrecord component
-