Record Class LibreOfficePdfConverter.ConversionResult
java.lang.Object
java.lang.Record
com.sankcrm.erp.contract.infrastructure.template.word.LibreOfficePdfConverter.ConversionResult
- Enclosing class:
LibreOfficePdfConverter
-
Constructor Summary
ConstructorsConstructorDescriptionConversionResult(Path pdf, Duration duration, long inputBytes, long outputBytes, String processOutput) Creates an instance of aConversionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinputBytesrecord component.longReturns the value of theoutputBytesrecord component.pdf()Returns the value of thepdfrecord component.Returns the value of theprocessOutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConversionResult
public ConversionResult(Path pdf, Duration duration, long inputBytes, long outputBytes, String processOutput) Creates an instance of aConversionResultrecord class.- Parameters:
pdf- the value for thepdfrecord componentduration- the value for thedurationrecord componentinputBytes- the value for theinputBytesrecord componentoutputBytes- the value for theoutputBytesrecord componentprocessOutput- the value for theprocessOutputrecord 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 '=='. -
pdf
Returns the value of thepdfrecord component.- Returns:
- the value of the
pdfrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
inputBytes
public long inputBytes()Returns the value of theinputBytesrecord component.- Returns:
- the value of the
inputBytesrecord component
-
outputBytes
public long outputBytes()Returns the value of theoutputBytesrecord component.- Returns:
- the value of the
outputBytesrecord component
-
processOutput
Returns the value of theprocessOutputrecord component.- Returns:
- the value of the
processOutputrecord component
-