Record Class MistralOcrApi.OCRPageDimensions
java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.ocr.MistralOcrApi.OCRPageDimensions
- Record Components:
dpi
- Dots per inch of the page-image.height
- Height of the image in pixels.width
- Width of the image in pixels.
- Enclosing class:
- MistralOcrApi
public static record MistralOcrApi.OCRPageDimensions(Integer dpi, Integer height, Integer width)
extends Record
Represents the dimensions of a PDF page's screenshot image.
-
Constructor Summary
ConstructorsConstructorDescriptionOCRPageDimensions
(Integer dpi, Integer height, Integer width) Creates an instance of aOCRPageDimensions
record class. -
Method Summary
Modifier and TypeMethodDescriptiondpi()
Returns the value of thedpi
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.width()
Returns the value of thewidth
record component.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
dpi
Returns the value of thedpi
record component.- Returns:
- the value of the
dpi
record component
-
height
Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
width
Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-