Package tech.kronicle.sdk.models.git
Class Identity
- java.lang.Object
-
- tech.kronicle.sdk.models.git.Identity
-
public final class Identity extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentity.IdentityBuilder
-
Constructor Summary
Constructors Constructor Description Identity(java.util.List<java.lang.String> names, java.lang.String emailAddress, java.lang.Integer commitCount, java.time.LocalDateTime firstCommitTimestamp, java.time.LocalDateTime lastCommitTimestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Identity.IdentityBuilderbuilder()booleanequals(java.lang.Object o)java.lang.IntegergetCommitCount()java.lang.StringgetEmailAddress()java.time.LocalDateTimegetFirstCommitTimestamp()java.time.LocalDateTimegetLastCommitTimestamp()java.util.List<java.lang.String>getNames()inthashCode()Identity.IdentityBuildertoBuilder()java.lang.StringtoString()IdentitywithCommitCount(java.lang.Integer commitCount)IdentitywithEmailAddress(java.lang.String emailAddress)IdentitywithFirstCommitTimestamp(java.time.LocalDateTime firstCommitTimestamp)IdentitywithLastCommitTimestamp(java.time.LocalDateTime lastCommitTimestamp)IdentitywithNames(java.util.List<java.lang.String> names)
-
-
-
Constructor Detail
-
Identity
@ConstructorProperties({"names","emailAddress","commitCount","firstCommitTimestamp","lastCommitTimestamp"}) public Identity(java.util.List<java.lang.String> names, java.lang.String emailAddress, java.lang.Integer commitCount, java.time.LocalDateTime firstCommitTimestamp, java.time.LocalDateTime lastCommitTimestamp)
-
-
Method Detail
-
builder
public static Identity.IdentityBuilder builder()
-
toBuilder
public Identity.IdentityBuilder toBuilder()
-
getNames
public java.util.List<java.lang.String> getNames()
-
getEmailAddress
public java.lang.String getEmailAddress()
-
getCommitCount
public java.lang.Integer getCommitCount()
-
getFirstCommitTimestamp
public java.time.LocalDateTime getFirstCommitTimestamp()
-
getLastCommitTimestamp
public java.time.LocalDateTime getLastCommitTimestamp()
-
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
-
withNames
public Identity withNames(java.util.List<java.lang.String> names)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEmailAddress
public Identity withEmailAddress(java.lang.String emailAddress)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCommitCount
public Identity withCommitCount(java.lang.Integer commitCount)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFirstCommitTimestamp
public Identity 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 Identity withLastCommitTimestamp(java.time.LocalDateTime lastCommitTimestamp)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-