Package com.tnsai.tools.project
Record Class AgentsMdContent
java.lang.Object
java.lang.Record
com.tnsai.tools.project.AgentsMdContent
- Record Components:
intro- content above the first## …heading (may be empty)sections- sections parsed in source order
Parsed AGENTS.md (or CLAUDE.md / README.md) content. The
intro
captures everything before the first level-2+ heading; sections
lists all subsequent sections in source order.- Since:
- 0.10.3
-
Constructor Summary
ConstructorsConstructorDescriptionAgentsMdContent(String intro, List<AgentsMdSection> sections) Creates an instance of aAgentsMdContentrecord 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.intro()Returns the value of theintrorecord component.sections()Returns the value of thesectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
intro
Returns the value of theintrorecord component.- Returns:
- the value of the
introrecord component
-
sections
Returns the value of thesectionsrecord component.- Returns:
- the value of the
sectionsrecord component
-