Record Class TableRowPolicy
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.table.TableRowPolicy
- Record Components:
rowIndex- body row index, starting at zerokeepTogether- optional row split control; AUTO allows splittingkeepWithNext- optional relationship to the following body row
Overrides page-breaking behavior for one zero-based body row. Indices must be unique and in
range.
-
Constructor Summary
ConstructorsConstructorDescriptionTableRowPolicy(int rowIndex, Keep keepTogether, Keep keepWithNext) Creates an instance of aTableRowPolicyrecord 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.Returns the value of thekeepWithNextrecord component.introwIndex()Returns the value of therowIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableRowPolicy
Creates an instance of aTableRowPolicyrecord class.- Parameters:
rowIndex- the value for therowIndexrecord componentkeepTogether- the value for thekeepTogetherrecord componentkeepWithNext- the value for thekeepWithNextrecord 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 '=='. -
rowIndex
public int rowIndex()Returns the value of therowIndexrecord component.- Returns:
- the value of the
rowIndexrecord component
-
keepTogether
Returns the value of thekeepTogetherrecord component.- Returns:
- the value of the
keepTogetherrecord component
-
keepWithNext
Returns the value of thekeepWithNextrecord component.- Returns:
- the value of the
keepWithNextrecord component
-