Record Class PdfHyperlinkAnchorLocator.WordAnchor
java.lang.Object
java.lang.Record
com.sankcrm.erp.contract.infrastructure.template.word.PdfHyperlinkAnchorLocator.WordAnchor
- Enclosing class:
PdfHyperlinkAnchorLocator
-
Constructor Summary
ConstructorsConstructorDescriptionWordAnchor(String name, int pageNumber, float x, float y, float width, float height) Creates an instance of aWordAnchorrecord 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.floatheight()Returns the value of theheightrecord component.name()Returns the value of thenamerecord component.intReturns the value of thepageNumberrecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Constructor Details
-
WordAnchor
Creates an instance of aWordAnchorrecord class.- Parameters:
name- the value for thenamerecord componentpageNumber- the value for thepageNumberrecord componentx- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
pageNumber
public int pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public float height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-