Record Class ThreadMessage.Content.ImageFileContent
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.ThreadMessage.Content.ImageFileContent
- All Implemented Interfaces:
ThreadMessage.Content
- Enclosing interface:
- ThreadMessage.Content
public static record ThreadMessage.Content.ImageFileContent(ThreadMessage.Content.ImageFileContent.ImageFile imageFile)
extends Record
implements ThreadMessage.Content
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordNested classes/interfaces inherited from interface io.github.stefanbratanov.jvm.openai.ThreadMessage.Content
ThreadMessage.Content.ImageFileContent, ThreadMessage.Content.ImageUrlContent, ThreadMessage.Content.TextContent -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aImageFileContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimageFilerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
ImageFileContent
Creates an instance of aImageFileContentrecord class.- Parameters:
imageFile- the value for theimageFilerecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceThreadMessage.Content
-
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). -
imageFile
Returns the value of theimageFilerecord component.- Returns:
- the value of the
imageFilerecord component
-