Record Class ColumnsBlock
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.block.ColumnsBlock
- Record Components:
columns- owned nonempty column list, checked during generationgapMm- finite nonnegative gap between adjacent columnsstyle- nullable inherited typography and outer spacing/pagination overrides
- All Implemented Interfaces:
Block
public record ColumnsBlock(List<Column> columns, double gapMm, Style style)
extends Record
implements Block
Side-by-side independent rich-content columns, using proportional widths after physical gaps. The
block flows to the height of its tallest column; content does not automatically continue from one
column into another.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnsBlock(List<Column> columns, double gapMm, Style style) Snapshots columns without prematurely validating document geometry. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.doublegapMm()Returns the value of thegapMmrecord component.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
-
ColumnsBlock
Snapshots columns without prematurely validating document geometry.- Parameters:
columns- source column listgapMm- physical intercolumn gapstyle- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
gapMm
public double gapMm()Returns the value of thegapMmrecord component.- Returns:
- the value of the
gapMmrecord component
-
style
Returns the value of thestylerecord component.
-