Package io.github.jbastgen.stemma.app.ai
Record Class CommitData
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.ai.CommitData
- Record Components:
files- the files whose changes may be sent (not excluded, not binary content)omitted- how many changed files are left out: excluded by the privacy patterns, binary, or beyond the limit
public record CommitData(String id, String shortId, String author, String date, String message, List<CommitData.FileData> files, int omitted)
extends Record
What is known about one commit when it is described: its message and the files it changed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne changed file:statusis "added", "modified" or "deleted";diffis the unified diff text. -
Constructor Summary
ConstructorsConstructorDescriptionCommitData(String id, String shortId, String author, String date, String message, List<CommitData.FileData> files, int omitted) Creates an instance of aCommitDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.intomitted()Returns the value of theomittedrecord component.shortId()Returns the value of theshortIdrecord component.subject()The first line of the message.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommitData
public CommitData(String id, String shortId, String author, String date, String message, List<CommitData.FileData> files, int omitted) Creates an instance of aCommitDatarecord class.- Parameters:
id- the value for theidrecord componentshortId- the value for theshortIdrecord componentauthor- the value for theauthorrecord componentdate- the value for thedaterecord componentmessage- the value for themessagerecord componentfiles- the value for thefilesrecord componentomitted- the value for theomittedrecord component
-
-
Method Details
-
subject
The first line of the message. -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
shortId
Returns the value of theshortIdrecord component.- Returns:
- the value of the
shortIdrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-
omitted
public int omitted()Returns the value of theomittedrecord component.- Returns:
- the value of the
omittedrecord component
-