Package tech.kronicle.sdk.models.git
Class GitRepoState
- java.lang.Object
-
- tech.kronicle.sdk.models.git.GitRepoState
-
- All Implemented Interfaces:
ComponentState,ObjectWithId,State
public final class GitRepoState extends java.lang.Object implements ComponentState
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitRepoState.GitRepoStateBuilder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE
-
Constructor Summary
Constructors Constructor Description GitRepoState(java.lang.String pluginId, 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 GitRepoState.GitRepoStateBuilderbuilder()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.lang.StringgetId()java.time.LocalDateTimegetLastCommitTimestamp()java.lang.StringgetPluginId()java.lang.StringgetType()inthashCode()GitRepoState.GitRepoStateBuildertoBuilder()java.lang.StringtoString()GitRepoStatewithAuthorCount(java.lang.Integer authorCount)GitRepoStatewithAuthors(java.util.List<Identity> authors)GitRepoStatewithCommitCount(java.lang.Integer commitCount)GitRepoStatewithCommitterCount(java.lang.Integer committerCount)GitRepoStatewithCommitters(java.util.List<Identity> committers)GitRepoStatewithFirstCommitTimestamp(java.time.LocalDateTime firstCommitTimestamp)GitRepoStatewithLastCommitTimestamp(java.time.LocalDateTime lastCommitTimestamp)GitRepoStatewithPluginId(java.lang.String pluginId)
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GitRepoState
public GitRepoState(java.lang.String pluginId, 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 Detail
-
builder
public static GitRepoState.GitRepoStateBuilder builder()
-
toBuilder
public GitRepoState.GitRepoStateBuilder toBuilder()
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceComponentState- Specified by:
getTypein interfaceState
-
getPluginId
public java.lang.String getPluginId()
- Specified by:
getPluginIdin interfaceComponentState- Specified by:
getPluginIdin interfaceState
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceComponentState- Specified by:
getIdin interfaceObjectWithId- Specified by:
getIdin interfaceState
-
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
-
withPluginId
public GitRepoState withPluginId(java.lang.String pluginId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFirstCommitTimestamp
public GitRepoState 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 GitRepoState 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 GitRepoState 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 GitRepoState 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 GitRepoState 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 GitRepoState 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 GitRepoState withCommitterCount(java.lang.Integer committerCount)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-