Package io.github.jbastgen.stemma.app.ai
Record Class CoworkContext.Facts
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.ai.CoworkContext.Facts
- Enclosing class:
CoworkContext
public static record CoworkContext.Facts(String repo, String branch, List<CoworkContext.CommitLine> commits, List<CoworkContext.ChangeLine> changes, List<String> tags)
extends Record
What is known about the repository. Commits newest first.
-
Constructor Summary
ConstructorsConstructorDescriptionFacts(String repo, String branch, List<CoworkContext.CommitLine> commits, List<CoworkContext.ChangeLine> changes, List<String> tags) Creates an instance of aFactsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.changes()Returns the value of thechangesrecord component.commits()Returns the value of thecommitsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.repo()Returns the value of thereporecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Facts
public Facts(String repo, String branch, List<CoworkContext.CommitLine> commits, List<CoworkContext.ChangeLine> changes, List<String> tags) Creates an instance of aFactsrecord class.- Parameters:
repo- the value for thereporecord componentbranch- the value for thebranchrecord componentcommits- the value for thecommitsrecord componentchanges- the value for thechangesrecord componenttags- the value for thetagsrecord 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). -
repo
Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-
commits
Returns the value of thecommitsrecord component.- Returns:
- the value of the
commitsrecord component
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-