Package tech.kronicle.sdk.models.git
Class GitRepo
- java.lang.Object
-
- tech.kronicle.sdk.models.git.GitRepo
-
public final class GitRepo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitRepo.GitRepoBuilder
-
Constructor Summary
Constructors Constructor Description GitRepo(java.time.LocalDateTime firstCommitTimestamp, java.time.LocalDateTime lastCommitTimestamp, java.lang.Integer commitCount, java.util.List<Identity> authors, java.util.List<Identity> committers, java.lang.Integer authorCount, java.lang.Integer committerCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GitRepo.GitRepoBuilderbuilder()booleanequals(java.lang.Object o)java.lang.IntegergetAuthorCount()java.util.List<Identity>getAuthors()java.lang.IntegergetCommitCount()java.lang.IntegergetCommitterCount()java.util.List<Identity>getCommitters()java.time.LocalDateTimegetFirstCommitTimestamp()java.time.LocalDateTimegetLastCommitTimestamp()inthashCode()GitRepo.GitRepoBuildertoBuilder()java.lang.StringtoString()GitRepowithAuthorCount(java.lang.Integer authorCount)GitRepowithAuthors(java.util.List<Identity> authors)GitRepowithCommitCount(java.lang.Integer commitCount)GitRepowithCommitterCount(java.lang.Integer committerCount)GitRepowithCommitters(java.util.List<Identity> committers)GitRepowithFirstCommitTimestamp(java.time.LocalDateTime firstCommitTimestamp)GitRepowithLastCommitTimestamp(java.time.LocalDateTime lastCommitTimestamp)
-
-
-
Method Detail
-
builder
public static GitRepo.GitRepoBuilder builder()
-
toBuilder
public GitRepo.GitRepoBuilder toBuilder()
-
getFirstCommitTimestamp
public java.time.LocalDateTime getFirstCommitTimestamp()
-
getLastCommitTimestamp
public java.time.LocalDateTime getLastCommitTimestamp()
-
getCommitCount
public java.lang.Integer getCommitCount()
-
getAuthors
public java.util.List<Identity> getAuthors()
-
getCommitters
public java.util.List<Identity> getCommitters()
-
getAuthorCount
public java.lang.Integer getAuthorCount()
-
getCommitterCount
public java.lang.Integer getCommitterCount()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withFirstCommitTimestamp
public GitRepo withFirstCommitTimestamp(java.time.LocalDateTime firstCommitTimestamp)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLastCommitTimestamp
public GitRepo withLastCommitTimestamp(java.time.LocalDateTime lastCommitTimestamp)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCommitCount
public GitRepo withCommitCount(java.lang.Integer commitCount)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAuthors
public GitRepo withAuthors(java.util.List<Identity> authors)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCommitters
public GitRepo withCommitters(java.util.List<Identity> committers)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAuthorCount
public GitRepo withAuthorCount(java.lang.Integer authorCount)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCommitterCount
public GitRepo withCommitterCount(java.lang.Integer committerCount)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-