Record Class PdfHyperlinkAnchorLocator.Result
java.lang.Object
java.lang.Record
com.sankcrm.erp.contract.infrastructure.template.word.PdfHyperlinkAnchorLocator.Result
- Enclosing class:
PdfHyperlinkAnchorLocator
public static record PdfHyperlinkAnchorLocator.Result(Path pdf, List<PdfHyperlinkAnchorLocator.WordAnchor> anchors)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Path pdf, List<PdfHyperlinkAnchorLocator.WordAnchor> anchors) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanchors()Returns the value of theanchorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pdf()Returns the value of thepdfrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
pdf- the value for thepdfrecord componentanchors- the value for theanchorsrecord 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). -
pdf
Returns the value of thepdfrecord component.- Returns:
- the value of the
pdfrecord component
-
anchors
Returns the value of theanchorsrecord component.- Returns:
- the value of the
anchorsrecord component
-