Package com.nsdev.lettergenerator.theme
Record Class TableAppearance
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.theme.TableAppearance
- Record Components:
cells- defaults for every cellheader- additional repeating-header defaultsrowKeepTogether- default row pagination policy
public record TableAppearance(CellAppearance cells, CellAppearance header, Keep rowKeepTogether)
extends Record
Table appearance defaults shared by every authoring API. Explicit table and cell settings win.
-
Constructor Summary
ConstructorsConstructorDescriptionTableAppearance(CellAppearance cells, CellAppearance header, Keep rowKeepTogether) Creates an instance of aTableAppearancerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncells()Returns the value of thecellsrecord 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 therowKeepTogetherrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableAppearance
Creates an instance of aTableAppearancerecord class.- Parameters:
cells- the value for thecellsrecord componentheader- the value for theheaderrecord componentrowKeepTogether- the value for therowKeepTogetherrecord component
-
-
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). -
cells
Returns the value of thecellsrecord component.- Returns:
- the value of the
cellsrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
rowKeepTogether
Returns the value of therowKeepTogetherrecord component.- Returns:
- the value of the
rowKeepTogetherrecord component
-