Record Class TableRowGroup
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.table.TableRowGroup
- Record Components:
startRow- first zero-based body row indexrowCount- positive number of rows in the groupkeepTogether- required keep strength, including AUTO to allow normal breaks
Consecutive body rows requested to stay on one page. Groups cannot overlap and cannot include
header rows. A soft preference may break when necessary; an impossible strong keep can fail.
-
Constructor Summary
ConstructorsConstructorDescriptionTableRowGroup(int startRow, int rowCount, Keep keepTogether) Creates an instance of aTableRowGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeepTogetherrecord component.introwCount()Returns the value of therowCountrecord component.intstartRow()Returns the value of thestartRowrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableRowGroup
Creates an instance of aTableRowGrouprecord class.- Parameters:
startRow- the value for thestartRowrecord componentrowCount- the value for therowCountrecord componentkeepTogether- the value for thekeepTogetherrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
startRow
public int startRow()Returns the value of thestartRowrecord component.- Returns:
- the value of the
startRowrecord component
-
rowCount
public int rowCount()Returns the value of therowCountrecord component.- Returns:
- the value of the
rowCountrecord component
-
keepTogether
Returns the value of thekeepTogetherrecord component.- Returns:
- the value of the
keepTogetherrecord component
-