Record Class CitationReference
java.lang.Object
java.lang.Record
com.github.copilot.generated.CitationReference
-
Constructor Summary
ConstructorsConstructorDescriptionCitationReference(String sourceId, String citedText, Object location, Object providerMetadata) Creates an instance of aCitationReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecitedTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of theproviderMetadatarecord component.sourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CitationReference
public CitationReference(String sourceId, String citedText, Object location, Object providerMetadata) Creates an instance of aCitationReferencerecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentcitedText- the value for thecitedTextrecord componentlocation- the value for thelocationrecord componentproviderMetadata- the value for theproviderMetadatarecord 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). -
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
citedText
Returns the value of thecitedTextrecord component.- Returns:
- the value of the
citedTextrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
providerMetadata
Returns the value of theproviderMetadatarecord component.- Returns:
- the value of the
providerMetadatarecord component
-