java.lang.Object
java.lang.Record
records.EmployeeRecord
public record EmployeeRecord(int employeeID, String lastName, String firstName, String dob, String address, String phoneNum, String sssNo, String philHealthNo, String pagIbigNo, String tinNo, String department, String position, String supervisor, String status, Double basicSalary, Double riceSubsidy, Double phoneAllowance, Double clothingAllowance, Double semiMonthlyRate, Double hourlyRate)
extends Record
Represents an employee record.
This record contains information about an employee, including personal details,
contact information, employment details, and salary information.
Available methods:
-
Constructor Summary
ConstructorsConstructorDescriptionEmployeeRecord(int employeeID, String lastName, String firstName, String dob, String address, String phoneNum, String sssNo, String philHealthNo, String pagIbigNo, String tinNo, String department, String position, String supervisor, String status, Double basicSalary, Double riceSubsidy, Double phoneAllowance, Double clothingAllowance, Double semiMonthlyRate, Double hourlyRate) Creates an instance of aEmployeeRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.Returns the value of thebasicSalaryrecord component.Returns the value of theclothingAllowancerecord component.Returns the value of thedepartmentrecord component.dob()Returns the value of thedobrecord component.intReturns the value of theemployeeIDrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehourlyRaterecord component.lastName()Returns the value of thelastNamerecord component.Returns the value of thepagIbigNorecord component.Returns the value of thephilHealthNorecord component.Returns the value of thephoneAllowancerecord component.phoneNum()Returns the value of thephoneNumrecord component.position()Returns the value of thepositionrecord component.Returns the value of thericeSubsidyrecord component.Returns the value of thesemiMonthlyRaterecord component.sssNo()Returns the value of thesssNorecord component.status()Returns the value of thestatusrecord component.Returns the value of thesupervisorrecord component.tinNo()Returns the value of thetinNorecord component.String[]toArray()Converts the EmployeeRecord to an array of strings.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmployeeRecord
public EmployeeRecord(int employeeID, String lastName, String firstName, String dob, String address, String phoneNum, String sssNo, String philHealthNo, String pagIbigNo, String tinNo, String department, String position, String supervisor, String status, Double basicSalary, Double riceSubsidy, Double phoneAllowance, Double clothingAllowance, Double semiMonthlyRate, Double hourlyRate) Creates an instance of aEmployeeRecordrecord class.- Parameters:
employeeID- the value for theemployeeIDrecord componentlastName- the value for thelastNamerecord componentfirstName- the value for thefirstNamerecord componentdob- the value for thedobrecord componentaddress- the value for theaddressrecord componentphoneNum- the value for thephoneNumrecord componentsssNo- the value for thesssNorecord componentphilHealthNo- the value for thephilHealthNorecord componentpagIbigNo- the value for thepagIbigNorecord componenttinNo- the value for thetinNorecord componentdepartment- the value for thedepartmentrecord componentposition- the value for thepositionrecord componentsupervisor- the value for thesupervisorrecord componentstatus- the value for thestatusrecord componentbasicSalary- the value for thebasicSalaryrecord componentriceSubsidy- the value for thericeSubsidyrecord componentphoneAllowance- the value for thephoneAllowancerecord componentclothingAllowance- the value for theclothingAllowancerecord componentsemiMonthlyRate- the value for thesemiMonthlyRaterecord componenthourlyRate- the value for thehourlyRaterecord component
-
-
Method Details
-
toArray
Converts the EmployeeRecord to an array of strings.- Returns:
- an array of strings representing the EmployeeRecord
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
employeeID
public int employeeID()Returns the value of theemployeeIDrecord component.- Returns:
- the value of the
employeeIDrecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
dob
Returns the value of thedobrecord component.- Returns:
- the value of the
dobrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
phoneNum
Returns the value of thephoneNumrecord component.- Returns:
- the value of the
phoneNumrecord component
-
sssNo
Returns the value of thesssNorecord component.- Returns:
- the value of the
sssNorecord component
-
philHealthNo
Returns the value of thephilHealthNorecord component.- Returns:
- the value of the
philHealthNorecord component
-
pagIbigNo
Returns the value of thepagIbigNorecord component.- Returns:
- the value of the
pagIbigNorecord component
-
tinNo
Returns the value of thetinNorecord component.- Returns:
- the value of the
tinNorecord component
-
department
Returns the value of thedepartmentrecord component.- Returns:
- the value of the
departmentrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
supervisor
Returns the value of thesupervisorrecord component.- Returns:
- the value of the
supervisorrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
basicSalary
Returns the value of thebasicSalaryrecord component.- Returns:
- the value of the
basicSalaryrecord component
-
riceSubsidy
Returns the value of thericeSubsidyrecord component.- Returns:
- the value of the
riceSubsidyrecord component
-
phoneAllowance
Returns the value of thephoneAllowancerecord component.- Returns:
- the value of the
phoneAllowancerecord component
-
clothingAllowance
Returns the value of theclothingAllowancerecord component.- Returns:
- the value of the
clothingAllowancerecord component
-
semiMonthlyRate
Returns the value of thesemiMonthlyRaterecord component.- Returns:
- the value of the
semiMonthlyRaterecord component
-
hourlyRate
Returns the value of thehourlyRaterecord component.- Returns:
- the value of the
hourlyRaterecord component
-