Record Class MistralOcrApi.ExtractedImage
java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.ocr.MistralOcrApi.ExtractedImage
- Record Components:
id- Image ID for the extracted image in a page.topLeftX- X coordinate of the top-left corner of the extracted image.topLeftY- Y coordinate of the top-left corner of the extracted image.bottomRightX- X coordinate of the bottom-right corner of the extracted image.bottomRightY- Y coordinate of the bottom-right corner of the extracted image.imageBase64- Base64 string of the extracted image.
- Enclosing class:
- MistralOcrApi
public static record MistralOcrApi.ExtractedImage(String id, Integer topLeftX, Integer topLeftY, Integer bottomRightX, Integer bottomRightY, String imageBase64)
extends Record
Represents an extracted image from a page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottomRightXrecord component.Returns the value of thebottomRightYrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theimageBase64record component.topLeftX()Returns the value of thetopLeftXrecord component.topLeftY()Returns the value of thetopLeftYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtractedImage
public ExtractedImage(String id, Integer topLeftX, Integer topLeftY, Integer bottomRightX, Integer bottomRightY, String imageBase64) Creates an instance of aExtractedImagerecord class.- Parameters:
id- the value for theidrecord componenttopLeftX- the value for thetopLeftXrecord componenttopLeftY- the value for thetopLeftYrecord componentbottomRightX- the value for thebottomRightXrecord componentbottomRightY- the value for thebottomRightYrecord componentimageBase64- the value for theimageBase64record component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
topLeftX
Returns the value of thetopLeftXrecord component.- Returns:
- the value of the
topLeftXrecord component
-
topLeftY
Returns the value of thetopLeftYrecord component.- Returns:
- the value of the
topLeftYrecord component
-
bottomRightX
Returns the value of thebottomRightXrecord component.- Returns:
- the value of the
bottomRightXrecord component
-
bottomRightY
Returns the value of thebottomRightYrecord component.- Returns:
- the value of the
bottomRightYrecord component
-
imageBase64
Returns the value of theimageBase64record component.- Returns:
- the value of the
imageBase64record component
-