Record Class RepoStats.Committer
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.git.RepoStats.Committer
- Enclosing class:
RepoStats
public static record RepoStats.Committer(String name, String email, String commitId, int commits, int added, int deleted, int activeDays, Instant first, Instant last, double share)
extends Record
The commits of one person.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveDaysrecord component.intadded()Returns the value of theaddedrecord component.commitId()Returns the value of thecommitIdrecord component.intcommits()Returns the value of thecommitsrecord component.intdeleted()Returns the value of thedeletedrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.last()Returns the value of thelastrecord component.name()Returns the value of thenamerecord component.doubleshare()Returns the value of thesharerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Committer
public Committer(String name, String email, String commitId, int commits, int added, int deleted, int activeDays, Instant first, Instant last, double share) Creates an instance of aCommitterrecord class.- Parameters:
name- the value for thenamerecord componentemail- the value for theemailrecord componentcommitId- the value for thecommitIdrecord componentcommits- the value for thecommitsrecord componentadded- the value for theaddedrecord componentdeleted- the value for thedeletedrecord componentactiveDays- the value for theactiveDaysrecord componentfirst- the value for thefirstrecord componentlast- the value for thelastrecord componentshare- the value for thesharerecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
commitId
Returns the value of thecommitIdrecord component.- Returns:
- the value of the
commitIdrecord component
-
commits
public int commits()Returns the value of thecommitsrecord component.- Returns:
- the value of the
commitsrecord component
-
added
public int added()Returns the value of theaddedrecord component.- Returns:
- the value of the
addedrecord component
-
deleted
public int deleted()Returns the value of thedeletedrecord component.- Returns:
- the value of the
deletedrecord component
-
activeDays
public int activeDays()Returns the value of theactiveDaysrecord component.- Returns:
- the value of the
activeDaysrecord component
-
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-