Record Class DashScopeApiSpec.DocumentChunk
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DocumentChunk
- Enclosing class:
- DashScopeApiSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchunkId()Returns the value of thechunkIdrecord component.content()Returns the value of thecontentrecord 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 thehierTitlerecord component.nid()Returns the value of thenidrecord component.parent()Returns the value of theparentrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentChunk
public DocumentChunk(int chunkId, String content, String title, String hierTitle, String nid, String parent) Creates an instance of aDocumentChunkrecord class.- Parameters:
chunkId- the value for thechunkIdrecord componentcontent- the value for thecontentrecord componenttitle- the value for thetitlerecord componenthierTitle- the value for thehierTitlerecord componentnid- the value for thenidrecord componentparent- the value for theparentrecord component
-
-
Method Details
-
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 '=='. -
chunkId
public int chunkId()Returns the value of thechunkIdrecord component.- Returns:
- the value of the
chunkIdrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
hierTitle
Returns the value of thehierTitlerecord component.- Returns:
- the value of the
hierTitlerecord component
-
nid
Returns the value of thenidrecord component.- Returns:
- the value of the
nidrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-