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 aProjectStatisticsResponse
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.@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 theprojectUserCount
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
-
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 aProjectStatisticsResponse
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 componenttotalProjectCount
- the value for thetotalProjectCount
record componentlocalProjectCount
- the value for thelocalProjectCount
record componentgithubProjectCount
- the value for thegithubProjectCount
record componentprojectUserCount
- the value for theprojectUserCount
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
-
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
-
projectUserCount
Returns the value of theprojectUserCount
record component.- Returns:
- the value of the
projectUserCount
record component
-