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 thebottomRightX
record component.Returns the value of thebottomRightY
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theimageBase64
record component.topLeftX()
Returns the value of thetopLeftX
record component.topLeftY()
Returns the value of thetopLeftY
record component.final String
toString()
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 aExtractedImage
record class.- Parameters:
id
- the value for theid
record componenttopLeftX
- the value for thetopLeftX
record componenttopLeftY
- the value for thetopLeftY
record componentbottomRightX
- the value for thebottomRightX
record componentbottomRightY
- the value for thebottomRightY
record componentimageBase64
- the value for theimageBase64
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
topLeftX
Returns the value of thetopLeftX
record component.- Returns:
- the value of the
topLeftX
record component
-
topLeftY
Returns the value of thetopLeftY
record component.- Returns:
- the value of the
topLeftY
record component
-
bottomRightX
Returns the value of thebottomRightX
record component.- Returns:
- the value of the
bottomRightX
record component
-
bottomRightY
Returns the value of thebottomRightY
record component.- Returns:
- the value of the
bottomRightY
record component
-
imageBase64
Returns the value of theimageBase64
record component.- Returns:
- the value of the
imageBase64
record component
-