Record Class ProjectStatisticsResponse
java.lang.Object
java.lang.Record
inha.git.statistics.api.controller.dto.response.ProjectStatisticsResponse
public record ProjectStatisticsResponse(SearchCollegeResponse college, SearchDepartmentResponse department, SearchFieldResponse field, SearchSemesterResponse semester, SearchCategoryResponse category, @NotNull Integer totalProjectCount, @NotNull Integer localProjectCount, @NotNull Integer githubProjectCount, @NotNull Integer projectUserCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProjectStatisticsResponse(SearchCollegeResponse college, SearchDepartmentResponse department, SearchFieldResponse field, SearchSemesterResponse semester, SearchCategoryResponse category, @NotNull Integer totalProjectCount, @NotNull Integer localProjectCount, @NotNull Integer githubProjectCount, @NotNull Integer projectUserCount) Creates an instance of aProjectStatisticsResponserecord 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.@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 theprojectUserCountrecord 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
-
ProjectStatisticsResponse
public ProjectStatisticsResponse(SearchCollegeResponse college, SearchDepartmentResponse department, SearchFieldResponse field, SearchSemesterResponse semester, SearchCategoryResponse category, @NotNull @NotNull Integer totalProjectCount, @NotNull @NotNull Integer localProjectCount, @NotNull @NotNull Integer githubProjectCount, @NotNull @NotNull Integer projectUserCount) Creates an instance of aProjectStatisticsResponserecord 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 componenttotalProjectCount- the value for thetotalProjectCountrecord componentlocalProjectCount- the value for thelocalProjectCountrecord componentgithubProjectCount- the value for thegithubProjectCountrecord componentprojectUserCount- the value for theprojectUserCountrecord 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
-
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
-
projectUserCount
Returns the value of theprojectUserCountrecord component.- Returns:
- the value of the
projectUserCountrecord component
-