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 aSemesterStatistics
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@NotNull Integer
Returns the value of thegithubProjectCount
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
Returns the value of thelocalProjectCount
record component.@NotNull Integer
Returns the value of thequestionCount
record component.semester()
Returns the value of thesemester
record component.final String
toString()
Returns a string representation of this record class.@NotNull Integer
Returns the value of thetotalProjectCount
record 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 aSemesterStatistics
record class.- Parameters:
semester
- the value for thesemester
record componenttotalProjectCount
- the value for thetotalProjectCount
record componentlocalProjectCount
- the value for thelocalProjectCount
record componentgithubProjectCount
- the value for thegithubProjectCount
record componentquestionCount
- the value for thequestionCount
record 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 thesemester
record component.- Returns:
- the value of the
semester
record component
-
totalProjectCount
Returns the value of thetotalProjectCount
record component.- Returns:
- the value of the
totalProjectCount
record component
-
localProjectCount
Returns the value of thelocalProjectCount
record component.- Returns:
- the value of the
localProjectCount
record component
-
githubProjectCount
Returns the value of thegithubProjectCount
record component.- Returns:
- the value of the
githubProjectCount
record component
-
questionCount
Returns the value of thequestionCount
record component.- Returns:
- the value of the
questionCount
record component
-