Record Class EducationAndWork

java.lang.Object
java.lang.Record
io.github.seenings.info.model.EducationAndWork
Record Components:
highestEducation - 最高学历
highestSchoolIds - 毕业院校
workPositionId - 职位ID
workCompany - 公司
annualIncomeIndex - 年收入

public record EducationAndWork(Integer highestEducation, List<String> highestSchoolIds, Integer workPositionId, String workCompany, Integer annualIncomeIndex) extends Record
EducationAndWork
  • Constructor Details

    • EducationAndWork

      public EducationAndWork(Integer highestEducation, List<String> highestSchoolIds, Integer workPositionId, String workCompany, Integer annualIncomeIndex)
      Creates an instance of a EducationAndWork record class.
      Parameters:
      highestEducation - the value for the highestEducation record component
      highestSchoolIds - the value for the highestSchoolIds record component
      workPositionId - the value for the workPositionId record component
      workCompany - the value for the workCompany record component
      annualIncomeIndex - the value for the annualIncomeIndex record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • highestEducation

      public Integer highestEducation()
      Returns the value of the highestEducation record component.
      Returns:
      the value of the highestEducation record component
    • highestSchoolIds

      public List<String> highestSchoolIds()
      Returns the value of the highestSchoolIds record component.
      Returns:
      the value of the highestSchoolIds record component
    • workPositionId

      public Integer workPositionId()
      Returns the value of the workPositionId record component.
      Returns:
      the value of the workPositionId record component
    • workCompany

      public String workCompany()
      Returns the value of the workCompany record component.
      Returns:
      the value of the workCompany record component
    • annualIncomeIndex

      public Integer annualIncomeIndex()
      Returns the value of the annualIncomeIndex record component.
      Returns:
      the value of the annualIncomeIndex record component