Record Class SemesterStatistics
java.lang.Object
java.lang.Record
inha.git.statistics.api.controller.dto.response.SemesterStatistics
-
Constructor Summary
ConstructorsConstructorDescriptionSemesterStatistics(SearchSemesterResponse semester, @NotNull Integer totalProjectCount, @NotNull Integer localProjectCount, @NotNull Integer githubProjectCount, @NotNull Integer questionCount) Creates an instance of aSemesterStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull IntegerReturns the value of thegithubProjectCountrecord component.final inthashCode()Returns a hash code value for this object.@NotNull IntegerReturns the value of thelocalProjectCountrecord component.@NotNull IntegerReturns the value of thequestionCountrecord component.semester()Returns the value of thesemesterrecord component.final StringtoString()Returns a string representation of this record class.@NotNull IntegerReturns the value of thetotalProjectCountrecord component.
-
Constructor Details
-
SemesterStatistics
public SemesterStatistics(SearchSemesterResponse semester, @NotNull @NotNull Integer totalProjectCount, @NotNull @NotNull Integer localProjectCount, @NotNull @NotNull Integer githubProjectCount, @NotNull @NotNull Integer questionCount) Creates an instance of aSemesterStatisticsrecord class.- Parameters:
semester- the value for thesemesterrecord componenttotalProjectCount- the value for thetotalProjectCountrecord componentlocalProjectCount- the value for thelocalProjectCountrecord componentgithubProjectCount- the value for thegithubProjectCountrecord componentquestionCount- the value for thequestionCountrecord 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). -
semester
Returns the value of thesemesterrecord component.- Returns:
- the value of the
semesterrecord component
-
totalProjectCount
Returns the value of thetotalProjectCountrecord component.- Returns:
- the value of the
totalProjectCountrecord component
-
localProjectCount
Returns the value of thelocalProjectCountrecord component.- Returns:
- the value of the
localProjectCountrecord component
-
githubProjectCount
Returns the value of thegithubProjectCountrecord component.- Returns:
- the value of the
githubProjectCountrecord component
-
questionCount
Returns the value of thequestionCountrecord component.- Returns:
- the value of the
questionCountrecord component
-