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 record
Nested 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 aFileCitationAnnotation
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
endIndex()
Returns the value of theendIndex
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefileCitation
record component.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.int
Returns the value of thestartIndex
record component.text()
Returns the value of thetext
record component.final String
toString()
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 aFileCitationAnnotation
record class.- Parameters:
index
- the value for theindex
record componenttext
- the value for thetext
record componentfileCitation
- the value for thefileCitation
record componentstartIndex
- the value for thestartIndex
record componentendIndex
- the value for theendIndex
record component
-
-
Method Details
-
type
- Specified by:
type
in 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 theindex
record component.- Specified by:
index
in interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
- Returns:
- the value of the
index
record component
-
text
Returns the value of thetext
record component.- Specified by:
text
in interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
- Returns:
- the value of the
text
record component
-
fileCitation
public ThreadMessageDelta.Delta.Content.TextContent.Text.Annotation.FileCitationAnnotation.FileCitation fileCitation()Returns the value of thefileCitation
record component.- Returns:
- the value of the
fileCitation
record component
-
startIndex
public int startIndex()Returns the value of thestartIndex
record component.- Specified by:
startIndex
in interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
- Returns:
- the value of the
startIndex
record component
-
endIndex
public int endIndex()Returns the value of theendIndex
record component.- Specified by:
endIndex
in interfaceThreadMessageDelta.Delta.Content.TextContent.Text.Annotation
- Returns:
- the value of the
endIndex
record component
-