Record Class Column
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.layout.Column
- Record Components:
weight- positive finite proportional width, validated during generationblocks- ordered owned content, required and nonempty during generationstyle- nullable inherited typography overrides
Independent flowing content occupying a weighted share of its parent columns block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocks()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.doubleweight()Returns the value of theweightrecord component.
-
Constructor Details
-
Column
Snapshots content without replacing null values needed by path-aware validation.- Parameters:
weight- proportional widthblocks- content snapshot sourcestyle- nullable typography 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 '=='. -
weight
public double weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-