Record Class GithubDto
java.lang.Object
java.lang.Record
com.winchesters.devopsify.dto.response.GithubDto
public record GithubDto(String title, ReadMeStatus readMeStatus, RepositoryStatus repositoryStatus, int numberOfCommits, Date lastCommitDate)
extends Record
- 
Constructor SummaryConstructorsConstructorDescriptionGithubDto(String title, ReadMeStatus readMeStatus, RepositoryStatus repositoryStatus, int numberOfCommits, Date lastCommitDate) Creates an instance of aGithubDtorecord class.
- 
Method SummaryModifier 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- 
GithubDtopublic GithubDto(String title, ReadMeStatus readMeStatus, RepositoryStatus repositoryStatus, int numberOfCommits, Date lastCommitDate) Creates an instance of aGithubDtorecord class.- Parameters:
- title- the value for the- titlerecord component
- readMeStatus- the value for the- readMeStatusrecord component
- repositoryStatus- the value for the- repositoryStatusrecord component
- numberOfCommits- the value for the- numberOfCommitsrecord component
- lastCommitDate- the value for the- lastCommitDaterecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
titleReturns the value of thetitlerecord component.- Returns:
- the value of the titlerecord component
 
- 
readMeStatusReturns the value of thereadMeStatusrecord component.- Returns:
- the value of the readMeStatusrecord component
 
- 
repositoryStatusReturns the value of therepositoryStatusrecord component.- Returns:
- the value of the repositoryStatusrecord component
 
- 
numberOfCommitspublic int numberOfCommits()Returns the value of thenumberOfCommitsrecord component.- Returns:
- the value of the numberOfCommitsrecord component
 
- 
lastCommitDateReturns the value of thelastCommitDaterecord component.- Returns:
- the value of the lastCommitDaterecord component
 
 
-