Record Class CollegeStatisticsData
java.lang.Object
java.lang.Record
inha.git.statistics.api.controller.dto.data.CollegeStatisticsData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollegeId
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegithubProjectCount
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelocalProjectCount
record component.Returns the value of thequestionCount
record component.Returns the value of thesemesterId
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetotalProjectCount
record component.
-
Constructor Details
-
CollegeStatisticsData
public CollegeStatisticsData(Integer collegeId, Integer semesterId, Integer totalProjectCount, Integer localProjectCount, Integer githubProjectCount, Integer questionCount) Creates an instance of aCollegeStatisticsData
record class.- Parameters:
collegeId
- the value for thecollegeId
record componentsemesterId
- the value for thesemesterId
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)
. -
collegeId
Returns the value of thecollegeId
record component.- Returns:
- the value of the
collegeId
record component
-
semesterId
Returns the value of thesemesterId
record component.- Returns:
- the value of the
semesterId
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
-