Record Class BoxBlock
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.block.BoxBlock
- Record Components:
blocks- owned nonempty content list, validated during generationappearance- nullable physical decoration; null means undecoratedstyle- nullable inherited typography and outer spacing/pagination overrides
- All Implemented Interfaces:
Block
public record BoxBlock(List<Block> blocks, BoxAppearance appearance, Style style)
extends Record
implements Block
Rich flowing content with optional independent borders, padding and background color.
-
Constructor Summary
ConstructorsConstructorDescriptionBoxBlock(List<Block> blocks, BoxAppearance appearance, Style style) Snapshots content without validating nullable authoring values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappearancerecord component.blocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BoxBlock
Snapshots content without validating nullable authoring values.- Parameters:
blocks- source content listappearance- nullable box decorationstyle- nullable block overrides
-
-
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). -
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
appearance
Returns the value of theappearancerecord component.- Returns:
- the value of the
appearancerecord component
-
style
Returns the value of thestylerecord component.
-