Package org.jpedal.arlington.validate
Record Class PdfArlingtonValidator.FixResult
java.lang.Object
java.lang.Record
org.jpedal.arlington.validate.PdfArlingtonValidator.FixResult
- Record Components:
pdfVersion- the version of the fixed filefixes- the changes that were madeissues- the issues found when validating the fixed filewritten- true if the fixed file was written, which only happens when no errors remain
- Enclosing class:
PdfArlingtonValidator
public static record PdfArlingtonValidator.FixResult(float pdfVersion, List<org.jpedal.arlington.validate.AppliedFix> fixes, List<ValidationIssue> issues, boolean written)
extends Record
The result of fixing a single PDF file.
-
Constructor Summary
ConstructorsConstructorDescriptionFixResult(float pdfVersion, List<org.jpedal.arlington.validate.AppliedFix> fixes, List<ValidationIssue> issues, boolean written) Creates an instance of aFixResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.List<org.jpedal.arlington.validate.AppliedFix> fixes()Returns the value of thefixesrecord component.final inthashCode()Returns a hash code value for this object.issues()Returns the value of theissuesrecord component.floatReturns the value of thepdfVersionrecord component.final StringtoString()Returns a string representation of this record class.booleanwritten()Returns the value of thewrittenrecord component.
-
Constructor Details
-
FixResult
public FixResult(float pdfVersion, List<org.jpedal.arlington.validate.AppliedFix> fixes, List<ValidationIssue> issues, boolean written) Creates an instance of aFixResultrecord class.- Parameters:
pdfVersion- the value for thepdfVersionrecord componentfixes- the value for thefixesrecord componentissues- the value for theissuesrecord componentwritten- the value for thewrittenrecord 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 '=='. -
pdfVersion
public float pdfVersion()Returns the value of thepdfVersionrecord component.- Returns:
- the value of the
pdfVersionrecord component
-
fixes
Returns the value of thefixesrecord component.- Returns:
- the value of the
fixesrecord component
-
issues
Returns the value of theissuesrecord component.- Returns:
- the value of the
issuesrecord component
-
written
public boolean written()Returns the value of thewrittenrecord component.- Returns:
- the value of the
writtenrecord component
-