Package com.winchesters.devopsify.model
Record Class GithubAnalyseResults
java.lang.Object
java.lang.Record
com.winchesters.devopsify.model.GithubAnalyseResults
public record GithubAnalyseResults(String title, ReadMeStatus readMeStatus, RepositoryStatus repositoryStatus, int numberOfCommits, Date lastCommitDate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGithubAnalyseResults(String title, ReadMeStatus readMeStatus, RepositoryStatus repositoryStatus, int numberOfCommits, Date lastCommitDate) Creates an instance of aGithubAnalyseResultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastCommitDaterecord component.intReturns the value of thenumberOfCommitsrecord component.Returns the value of thereadMeStatusrecord component.Returns the value of therepositoryStatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GithubAnalyseResults
public GithubAnalyseResults(String title, ReadMeStatus readMeStatus, RepositoryStatus repositoryStatus, int numberOfCommits, Date lastCommitDate) Creates an instance of aGithubAnalyseResultsrecord class.- Parameters:
title- the value for thetitlerecord componentreadMeStatus- the value for thereadMeStatusrecord componentrepositoryStatus- the value for therepositoryStatusrecord componentnumberOfCommits- the value for thenumberOfCommitsrecord componentlastCommitDate- the value for thelastCommitDaterecord 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 '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
readMeStatus
Returns the value of thereadMeStatusrecord component.- Returns:
- the value of the
readMeStatusrecord component
-
repositoryStatus
Returns the value of therepositoryStatusrecord component.- Returns:
- the value of the
repositoryStatusrecord component
-
numberOfCommits
public int numberOfCommits()Returns the value of thenumberOfCommitsrecord component.- Returns:
- the value of the
numberOfCommitsrecord component
-
lastCommitDate
Returns the value of thelastCommitDaterecord component.- Returns:
- the value of the
lastCommitDaterecord component
-