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 aQuestionStatisticsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.college()Returns the value of thecollegerecord component.Returns the value of thedepartmentrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.@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 theuserCountrecord 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 aQuestionStatisticsResponserecord class.- Parameters:
college- the value for thecollegerecord componentdepartment- the value for thedepartmentrecord componentfield- the value for thefieldrecord componentsemester- the value for thesemesterrecord componentcategory- the value for thecategoryrecord componentquestionCount- the value for thequestionCountrecord componentuserCount- the value for theuserCountrecord 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 thecollegerecord component.- Returns:
- the value of the
collegerecord component
-
department
Returns the value of thedepartmentrecord component.- Returns:
- the value of the
departmentrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
semester
Returns the value of thesemesterrecord component.- Returns:
- the value of the
semesterrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
questionCount
Returns the value of thequestionCountrecord component.- Returns:
- the value of the
questionCountrecord component
-
userCount
Returns the value of theuserCountrecord component.- Returns:
- the value of the
userCountrecord component
-