Record Class GitSource.CommitMeta
java.lang.Object
java.lang.Record
network.ike.docs.plugin.diff.GitSource.CommitMeta
- Record Components:
id- the abbreviated commit id- the commit author's namedate- the author date, ISO local-date formsubject- the first line of the commit messagefullMessage- the full commit messagefiles- repository-relative paths the commit touched
- Enclosing class:
GitSource
-
Constructor Summary
Constructors -
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.Returns the value of thefullMessagerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommitMeta
public CommitMeta(String id, String author, String date, String subject, String fullMessage, List<String> files) Creates an instance of aCommitMetarecord class.- Parameters:
id- the value for theidrecord componentauthor- the value for theauthorrecord componentdate- the value for thedaterecord componentsubject- the value for thesubjectrecord componentfullMessage- the value for thefullMessagerecord componentfiles- the value for thefilesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
-
author
-
date
-
subject
-
fullMessage
Returns the value of thefullMessagerecord component.- Returns:
- the value of the
fullMessagerecord component
-
files
-