Record Class PdfDiagnostic
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.PdfDiagnostic
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPdfDiagnostic(PdfDiagnostic.Severity severity, String code, int pageNumber, String elementId, String regionId, String message) Creates an instance of aPdfDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.Returns the value of theelementIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.intReturns the value of thepageNumberrecord component.regionId()Returns the value of theregionIdrecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PdfDiagnostic
public PdfDiagnostic(PdfDiagnostic.Severity severity, String code, int pageNumber, String elementId, String regionId, String message) Creates an instance of aPdfDiagnosticrecord class.- Parameters:
severity- the value for theseverityrecord componentcode- the value for thecoderecord componentpageNumber- the value for thepageNumberrecord componentelementId- the value for theelementIdrecord componentregionId- the value for theregionIdrecord componentmessage- the value for themessagerecord 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. -
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
pageNumber
public int pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-
elementId
Returns the value of theelementIdrecord component.- Returns:
- the value of the
elementIdrecord component
-
regionId
Returns the value of theregionIdrecord component.- Returns:
- the value of the
regionIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-