Record Class DashScopeApiSpec.ParserConfiguredTransformations.ParserComponent
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.ParserConfiguredTransformations.ParserComponent
- Enclosing class:
- DashScopeApiSpec.ParserConfiguredTransformations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkSizerecord 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 theinputTyperecord component.language()Returns the value of thelanguagerecord component.Returns the value of theoverlapSizerecord component.Returns the value of theseparatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParserComponent
public ParserComponent(Integer chunkSize, Integer overlapSize, String inputType, String separator, String language) Creates an instance of aParserComponentrecord class.- Parameters:
chunkSize- the value for thechunkSizerecord componentoverlapSize- the value for theoverlapSizerecord componentinputType- the value for theinputTyperecord componentseparator- the value for theseparatorrecord componentlanguage- the value for thelanguagerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
chunkSize
Returns the value of thechunkSizerecord component.- Returns:
- the value of the
chunkSizerecord component
-
overlapSize
Returns the value of theoverlapSizerecord component.- Returns:
- the value of the
overlapSizerecord component
-
inputType
Returns the value of theinputTyperecord component.- Returns:
- the value of the
inputTyperecord component
-
separator
Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-