Record Class PdfMerger.MergeSource
java.lang.Object
java.lang.Record
cloud.opencode.base.pdf.operation.PdfMerger.MergeSource
- Record Components:
path- file path | 文件路径document- PDF document | PDF 文档stream- input stream | 输入流pageRanges- page ranges | 页面范围
- Enclosing class:
PdfMerger
public static record PdfMerger.MergeSource(Path path, PdfDocument document, InputStream stream, List<String> pageRanges)
extends Record
Merge Source
合并源
- Since:
- JDK 25, opencode-base-pdf V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionMergeSource(Path path, PdfDocument document, InputStream stream, List<String> pageRanges) Creates an instance of aMergeSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanChecks if this source has page ranges.Returns the value of thepageRangesrecord component.path()Returns the value of thepathrecord component.stream()Returns the value of thestreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MergeSource
Creates an instance of aMergeSourcerecord class.- Parameters:
path- the value for thepathrecord componentdocument- the value for thedocumentrecord componentstream- the value for thestreamrecord componentpageRanges- the value for thepageRangesrecord component
-
-
Method Details
-
hasPageRanges
public boolean hasPageRanges()Checks if this source has page ranges. 检查此源是否有页面范围。- Returns:
- true if has page ranges | 如果有页面范围返回 true
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
path
-
document
-
stream
-
pageRanges
Returns the value of thepageRangesrecord component.- Returns:
- the value of the
pageRangesrecord component
-