Record Class TextBlock
java.lang.Object
java.lang.Record
io.meeds.layout.model.TextBlock
public record TextBlock(Boolean enabled, TextRoleBlock title, TextRoleBlock header, TextRoleBlock content, TextRoleBlock subtitle, String iconColor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextBlock(Boolean enabled, TextRoleBlock title, TextRoleBlock header, TextRoleBlock content, TextRoleBlock subtitle, String iconColor) Creates an instance of aTextBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.Returns the value of theiconColorrecord 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.
-
Constructor Details
-
TextBlock
public TextBlock(Boolean enabled, TextRoleBlock title, TextRoleBlock header, TextRoleBlock content, TextRoleBlock subtitle, String iconColor) Creates an instance of aTextBlockrecord class.- Parameters:
enabled- the value for theenabledrecord componenttitle- the value for thetitlerecord componentheader- the value for theheaderrecord componentcontent- the value for thecontentrecord componentsubtitle- the value for thesubtitlerecord componenticonColor- the value for theiconColorrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
iconColor
Returns the value of theiconColorrecord component.- Returns:
- the value of the
iconColorrecord component
-