Package edu.ucsb.cs156.frontiers.models
Record Class CommitDto
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.models.CommitDto
- All Implemented Interfaces:
Serializable
public record CommitDto(Long id, String branchIdOrg, String branchIdRepo, String branchIdBranchName, String sha, String url, String message, Instant commitTime, String committerName, String committerEmail, String committerLogin, String authorName, String authorEmail, String authorLogin)
extends Record
implements Serializable
DTO for
Commit- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommitDto(Long id, String branchIdOrg, String branchIdRepo, String branchIdBranchName, String sha, String url, String message, Instant commitTime, String committerName, String committerEmail, String committerLogin, String authorName, String authorEmail, String authorLogin) Creates an instance of aCommitDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorEmailrecord component.Returns the value of theauthorLoginrecord component.Returns the value of theauthorNamerecord component.Returns the value of thebranchIdBranchNamerecord component.Returns the value of thebranchIdOrgrecord component.Returns the value of thebranchIdReporecord component.Returns the value of thecommitterEmailrecord component.Returns the value of thecommitterLoginrecord component.Returns the value of thecommitterNamerecord component.Returns the value of thecommitTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.sha()Returns the value of thesharecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
CommitDto
public CommitDto(Long id, String branchIdOrg, String branchIdRepo, String branchIdBranchName, String sha, String url, String message, Instant commitTime, String committerName, String committerEmail, String committerLogin, String authorName, String authorEmail, String authorLogin) Creates an instance of aCommitDtorecord class.- Parameters:
id- the value for theidrecord componentbranchIdOrg- the value for thebranchIdOrgrecord componentbranchIdRepo- the value for thebranchIdReporecord componentbranchIdBranchName- the value for thebranchIdBranchNamerecord componentsha- the value for thesharecord componenturl- the value for theurlrecord componentmessage- the value for themessagerecord componentcommitTime- the value for thecommitTimerecord componentcommitterName- the value for thecommitterNamerecord componentcommitterEmail- the value for thecommitterEmailrecord componentcommitterLogin- the value for thecommitterLoginrecord componentauthorName- the value for theauthorNamerecord componentauthorEmail- the value for theauthorEmailrecord componentauthorLogin- the value for theauthorLoginrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
branchIdOrg
Returns the value of thebranchIdOrgrecord component.- Returns:
- the value of the
branchIdOrgrecord component
-
branchIdRepo
Returns the value of thebranchIdReporecord component.- Returns:
- the value of the
branchIdReporecord component
-
branchIdBranchName
Returns the value of thebranchIdBranchNamerecord component.- Returns:
- the value of the
branchIdBranchNamerecord component
-
sha
Returns the value of thesharecord component.- Returns:
- the value of the
sharecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
commitTime
Returns the value of thecommitTimerecord component.- Returns:
- the value of the
commitTimerecord component
-
committerName
Returns the value of thecommitterNamerecord component.- Returns:
- the value of the
committerNamerecord component
-
committerEmail
Returns the value of thecommitterEmailrecord component.- Returns:
- the value of the
committerEmailrecord component
-
committerLogin
Returns the value of thecommitterLoginrecord component.- Returns:
- the value of the
committerLoginrecord component
-
authorName
Returns the value of theauthorNamerecord component.- Returns:
- the value of the
authorNamerecord component
-
authorEmail
Returns the value of theauthorEmailrecord component.- Returns:
- the value of the
authorEmailrecord component
-
authorLogin
Returns the value of theauthorLoginrecord component.- Returns:
- the value of the
authorLoginrecord component
-