Package io.mateu.dtos
Record Class CardDto
java.lang.Object
java.lang.Record
io.mateu.dtos.CardDto
- All Implemented Interfaces:
ComponentMetadataDto
public record CardDto(ComponentDto media, ComponentDto headerPrefix, ComponentDto header, ComponentDto title, ComponentDto subtitle, ComponentDto headerSuffix, ComponentDto content, ComponentDto footer, List<CardVariantDto> variants)
extends Record
implements ComponentMetadataDto
Card metadata
-
Constructor Summary
ConstructorsConstructorDescriptionCardDto(ComponentDto media, ComponentDto headerPrefix, ComponentDto header, ComponentDto title, ComponentDto subtitle, ComponentDto headerSuffix, ComponentDto content, ComponentDto footer, List<CardVariantDto> variants) Creates an instance of aCardDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.Returns the value of theheaderPrefixrecord component.Returns the value of theheaderSuffixrecord component.media()Returns the value of themediarecord component.subtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.variants()Returns the value of thevariantsrecord component.
-
Constructor Details
-
CardDto
public CardDto(ComponentDto media, ComponentDto headerPrefix, ComponentDto header, ComponentDto title, ComponentDto subtitle, ComponentDto headerSuffix, ComponentDto content, ComponentDto footer, List<CardVariantDto> variants) Creates an instance of aCardDtorecord class.- Parameters:
media- the value for themediarecord componentheaderPrefix- the value for theheaderPrefixrecord componentheader- the value for theheaderrecord componenttitle- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord componentheaderSuffix- the value for theheaderSuffixrecord componentcontent- the value for thecontentrecord componentfooter- the value for thefooterrecord componentvariants- the value for thevariantsrecord 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). -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
headerPrefix
Returns the value of theheaderPrefixrecord component.- Returns:
- the value of the
headerPrefixrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
headerSuffix
Returns the value of theheaderSuffixrecord component.- Returns:
- the value of the
headerSuffixrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
variants
Returns the value of thevariantsrecord component.- Returns:
- the value of the
variantsrecord component
-