Record Class ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation
- All Implemented Interfaces:
ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
- Enclosing interface:
- ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
public static record ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation(int index, String text, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation.FileCitation fileCitation, int startIndex, int endIndex)
extends Record
implements ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordNested classes/interfaces inherited from interface io.github.stefanbratanov.jvm.openai.ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation -
Constructor Summary
ConstructorsConstructorDescriptionFileCitationAnnotation(int index, String text, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation.FileCitation fileCitation, int startIndex, int endIndex) Creates an instance of aFileCitationAnnotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintendIndex()Returns the value of theendIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileCitationrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.intReturns the value of thestartIndexrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
FileCitationAnnotation
public FileCitationAnnotation(int index, String text, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation.FileCitation fileCitation, int startIndex, int endIndex) Creates an instance of aFileCitationAnnotationrecord class.- Parameters:
index- the value for theindexrecord componenttext- the value for thetextrecord componentfileCitation- the value for thefileCitationrecord componentstartIndex- the value for thestartIndexrecord componentendIndex- the value for theendIndexrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
index
public int index()Returns the value of theindexrecord component.- Specified by:
indexin interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation- Returns:
- the value of the
indexrecord component
-
text
Returns the value of thetextrecord component.- Specified by:
textin interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation- Returns:
- the value of the
textrecord component
-
fileCitation
public ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation.FileCitation fileCitation()Returns the value of thefileCitationrecord component.- Returns:
- the value of the
fileCitationrecord component
-
startIndex
public int startIndex()Returns the value of thestartIndexrecord component.- Specified by:
startIndexin interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation- Returns:
- the value of the
startIndexrecord component
-
endIndex
public int endIndex()Returns the value of theendIndexrecord component.- Specified by:
endIndexin interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation- Returns:
- the value of the
endIndexrecord component
-