Record Class ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation
- 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.FilePathAnnotation(int index, String text, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation.FilePath filePath, 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
ConstructorsConstructorDescriptionFilePathAnnotation(int index, String text, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation.FilePath filePath, int startIndex, int endIndex) Creates an instance of aFilePathAnnotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintendIndex()Returns the value of theendIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord 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
-
FilePathAnnotation
public FilePathAnnotation(int index, String text, ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation.FilePath filePath, int startIndex, int endIndex) Creates an instance of aFilePathAnnotationrecord class.- Parameters:
index- the value for theindexrecord componenttext- the value for thetextrecord componentfilePath- the value for thefilePathrecord 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
-
filePath
public ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FilePathAnnotation.FilePath filePath()Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord 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
-