Record Class EducationAndWork
java.lang.Object
java.lang.Record
io.github.seenings.info.model.EducationAndWork
- Record Components:
highestEducation- 最高学历highestSchoolIds- 毕业院校workPositionId- 职位IDworkCompany- 公司annualIncomeIndex- 年收入
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannualIncomeIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehighestEducationrecord component.Returns the value of thehighestSchoolIdsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkCompanyrecord component.Returns the value of theworkPositionIdrecord component.
-
Constructor Details
-
EducationAndWork
public EducationAndWork(Integer highestEducation, List<String> highestSchoolIds, Integer workPositionId, String workCompany, Integer annualIncomeIndex) Creates an instance of aEducationAndWorkrecord class.- Parameters:
highestEducation- the value for thehighestEducationrecord componenthighestSchoolIds- the value for thehighestSchoolIdsrecord componentworkPositionId- the value for theworkPositionIdrecord componentworkCompany- the value for theworkCompanyrecord componentannualIncomeIndex- the value for theannualIncomeIndexrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
highestEducation
Returns the value of thehighestEducationrecord component.- Returns:
- the value of the
highestEducationrecord component
-
highestSchoolIds
Returns the value of thehighestSchoolIdsrecord component.- Returns:
- the value of the
highestSchoolIdsrecord component
-
workPositionId
Returns the value of theworkPositionIdrecord component.- Returns:
- the value of the
workPositionIdrecord component
-
workCompany
Returns the value of theworkCompanyrecord component.- Returns:
- the value of the
workCompanyrecord component
-
annualIncomeIndex
Returns the value of theannualIncomeIndexrecord component.- Returns:
- the value of the
annualIncomeIndexrecord component
-