Record Class QuestionStatisticsResponse
java.lang.Object
java.lang.Record
inha.git.statistics.api.controller.dto.response.QuestionStatisticsResponse
public record QuestionStatisticsResponse(SearchCollegeResponse college, SearchDepartmentResponse department, SearchFieldResponse field, SearchSemesterResponse semester, SearchCategoryResponse category, @NotNull Integer questionCount, @NotNull Integer userCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQuestionStatisticsResponse
(SearchCollegeResponse college, SearchDepartmentResponse department, SearchFieldResponse field, SearchSemesterResponse semester, SearchCategoryResponse category, @NotNull Integer questionCount, @NotNull Integer userCount) Creates an instance of aQuestionStatisticsResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Returns the value of thecategory
record component.college()
Returns the value of thecollege
record component.Returns the value of thedepartment
record component.final boolean
Indicates whether some other object is "equal to" this one.field()
Returns the value of thefield
record component.final int
hashCode()
Returns a hash code value for this object.@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 theuserCount
record component.
-
Constructor Details
-
QuestionStatisticsResponse
public QuestionStatisticsResponse(SearchCollegeResponse college, SearchDepartmentResponse department, SearchFieldResponse field, SearchSemesterResponse semester, SearchCategoryResponse category, @NotNull @NotNull Integer questionCount, @NotNull @NotNull Integer userCount) Creates an instance of aQuestionStatisticsResponse
record class.- Parameters:
college
- the value for thecollege
record componentdepartment
- the value for thedepartment
record componentfield
- the value for thefield
record componentsemester
- the value for thesemester
record componentcategory
- the value for thecategory
record componentquestionCount
- the value for thequestionCount
record componentuserCount
- the value for theuserCount
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)
. -
college
Returns the value of thecollege
record component.- Returns:
- the value of the
college
record component
-
department
Returns the value of thedepartment
record component.- Returns:
- the value of the
department
record component
-
field
Returns the value of thefield
record component.- Returns:
- the value of the
field
record component
-
semester
Returns the value of thesemester
record component.- Returns:
- the value of the
semester
record component
-
category
Returns the value of thecategory
record component.- Returns:
- the value of the
category
record component
-
questionCount
Returns the value of thequestionCount
record component.- Returns:
- the value of the
questionCount
record component
-
userCount
Returns the value of theuserCount
record component.- Returns:
- the value of the
userCount
record component
-