Record Class CitationSpan
java.lang.Object
java.lang.Record
com.github.copilot.generated.CitationSpan
@Generated("copilot-sdk-codegen")
public record CitationSpan(Long startIndex, Long endIndex, List<CitationReference> references)
extends Record
A contiguous span of generated assistant text and the source references that support it.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCitationSpan(Long startIndex, Long endIndex, List<CitationReference> references) Creates an instance of aCitationSpanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionendIndex()Returns the value of theendIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereferencesrecord component.Returns the value of thestartIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CitationSpan
Creates an instance of aCitationSpanrecord class.- Parameters:
startIndex- the value for thestartIndexrecord componentendIndex- the value for theendIndexrecord componentreferences- the value for thereferencesrecord component
-
-
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). -
startIndex
Returns the value of thestartIndexrecord component.- Returns:
- the value of the
startIndexrecord component
-
endIndex
Returns the value of theendIndexrecord component.- Returns:
- the value of the
endIndexrecord component
-
references
Returns the value of thereferencesrecord component.- Returns:
- the value of the
referencesrecord component
-