Record Class FixedDocument.Page
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.FixedDocument.Page
- Enclosing class:
FixedDocument
public static record FixedDocument.Page(double widthMm, double heightMm, List<FixedDocument.Element> elements)
extends Record
固定頁;同頁 ID 不得重複。嚴格政策要求框線筆畫也位於紙張內。
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPage(double widthMm, double heightMm, List<FixedDocument.Element> elements) Creates an instance of aPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionelements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleheightMm()Returns the value of theheightMmrecord component.final StringtoString()Returns a string representation of this record class.doublewidthMm()Returns the value of thewidthMmrecord component.
-
Constructor Details
-
Page
Creates an instance of aPagerecord class.- Parameters:
widthMm- the value for thewidthMmrecord componentheightMm- the value for theheightMmrecord componentelements- the value for theelementsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
widthMm
public double widthMm()Returns the value of thewidthMmrecord component.- Returns:
- the value of the
widthMmrecord component
-
heightMm
public double heightMm()Returns the value of theheightMmrecord component.- Returns:
- the value of the
heightMmrecord component
-
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-