Record Class TextRoleBlock
java.lang.Object
java.lang.Record
io.meeds.layout.model.TextRoleBlock
-
Constructor Summary
ConstructorsConstructorDescriptionTextRoleBlock(String color, Integer size, Boolean bold, Boolean italic, TextBackgroundBlock background) Creates an instance of aTextRoleBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord component.bold()Returns the value of theboldrecord component.color()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.italic()Returns the value of theitalicrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextRoleBlock
public TextRoleBlock(String color, Integer size, Boolean bold, Boolean italic, TextBackgroundBlock background) Creates an instance of aTextRoleBlockrecord class.- Parameters:
color- the value for thecolorrecord componentsize- the value for thesizerecord componentbold- the value for theboldrecord componentitalic- the value for theitalicrecord componentbackground- the value for thebackgroundrecord 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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
bold
Returns the value of theboldrecord component.- Returns:
- the value of the
boldrecord component
-
italic
Returns the value of theitalicrecord component.- Returns:
- the value of the
italicrecord component
-
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-