Record Class MistralOcrApi.OCRUsageInfo
java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.ocr.MistralOcrApi.OCRUsageInfo
- Record Components:
pagesProcessed- Number of pages processed.docSizeBytes- Document size in bytes.
- Enclosing class:
MistralOcrApi
-
Constructor Summary
ConstructorsConstructorDescriptionOCRUsageInfo(Integer pagesProcessed, Integer docSizeBytes) Creates an instance of aOCRUsageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocSizeBytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepagesProcessedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OCRUsageInfo
Creates an instance of aOCRUsageInforecord class.- Parameters:
pagesProcessed- the value for thepagesProcessedrecord componentdocSizeBytes- the value for thedocSizeBytesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
pagesProcessed
Returns the value of thepagesProcessedrecord component.- Returns:
- the value of the
pagesProcessedrecord component
-
docSizeBytes
Returns the value of thedocSizeBytesrecord component.- Returns:
- the value of the
docSizeBytesrecord component
-