Record Class DocumentImage
java.lang.Object
java.lang.Record
com.blueriq.component.api.documents.extraction.DocumentImage
- Record Components:
mediaType- the media type of the imagedata- the raw binary data of the imagename- the name of the image
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentImage(org.springframework.http.MediaType mediaType, byte[] data) DocumentImage(org.springframework.http.MediaType mediaType, byte[] data, String name) Creates an instance of aDocumentImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.springframework.http.MediaTypeReturns the value of themediaTyperecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentImage
public DocumentImage(org.springframework.http.MediaType mediaType, byte[] data) -
DocumentImage
Creates an instance of aDocumentImagerecord class.
-
-
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). -
mediaType
-
data
-
name
-