Package org.xhtmlrenderer.render
Record Class PageBox.MarginAreaContainer
java.lang.Object
java.lang.Record
org.xhtmlrenderer.render.PageBox.MarginAreaContainer
- Enclosing class:
- PageBox
private static record PageBox.MarginAreaContainer(PageBox.MarginArea area, TableBox table)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PageBox.MarginArea
The field for thearea
record component.private final TableBox
The field for thetable
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MarginAreaContainer
(PageBox.MarginArea area, TableBox table) Creates an instance of aMarginAreaContainer
record class. -
Method Summary
Modifier and TypeMethodDescriptionarea()
Returns the value of thearea
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.table()
Returns the value of thetable
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
area
The field for thearea
record component. -
table
The field for thetable
record component.
-
-
Constructor Details
-
MarginAreaContainer
Creates an instance of aMarginAreaContainer
record class.- Parameters:
area
- the value for thearea
record componenttable
- the value for thetable
record 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)
. -
area
Returns the value of thearea
record component.- Returns:
- the value of the
area
record component
-
table
Returns the value of thetable
record component.- Returns:
- the value of the
table
record component
-