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 thecollegeIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegithubProjectCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalProjectCountrecord component.Returns the value of thequestionCountrecord component.Returns the value of thesemesterIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalProjectCountrecord component.
-
Constructor Details
-
CollegeStatisticsData
public CollegeStatisticsData(Integer collegeId, Integer semesterId, Integer totalProjectCount, Integer localProjectCount, Integer githubProjectCount, Integer questionCount) Creates an instance of aCollegeStatisticsDatarecord class.- Parameters:
collegeId- the value for thecollegeIdrecord componentsemesterId- the value for thesemesterIdrecord componenttotalProjectCount- the value for thetotalProjectCountrecord componentlocalProjectCount- the value for thelocalProjectCountrecord componentgithubProjectCount- the value for thegithubProjectCountrecord componentquestionCount- the value for thequestionCountrecord 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 thecollegeIdrecord component.- Returns:
- the value of the
collegeIdrecord component
-
semesterId
Returns the value of thesemesterIdrecord component.- Returns:
- the value of the
semesterIdrecord 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
-
questionCount
Returns the value of thequestionCountrecord component.- Returns:
- the value of the
questionCountrecord component
-