Record Class SkillCandidate.ScriptFilePreview
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.curator.SkillCandidate.ScriptFilePreview
- Enclosing class:
- SkillCandidate
-
Constructor Summary
ConstructorsConstructorDescriptionScriptFilePreview(String relPath, String headPreview, int totalLines, String sha256) Creates an instance of aScriptFilePreviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheadPreviewrecord component.relPath()Returns the value of therelPathrecord component.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalLinesrecord component.
-
Constructor Details
-
ScriptFilePreview
Creates an instance of aScriptFilePreviewrecord class.- Parameters:
relPath- the value for therelPathrecord componentheadPreview- the value for theheadPreviewrecord componenttotalLines- the value for thetotalLinesrecord componentsha256- the value for thesha256record 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 '=='. -
relPath
Returns the value of therelPathrecord component.- Returns:
- the value of the
relPathrecord component
-
headPreview
Returns the value of theheadPreviewrecord component.- Returns:
- the value of the
headPreviewrecord component
-
totalLines
public int totalLines()Returns the value of thetotalLinesrecord component.- Returns:
- the value of the
totalLinesrecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-