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 aEmployeeRecord
record class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Returns the value of theaddress
record component.Returns the value of thebasicSalary
record component.Returns the value of theclothingAllowance
record component.Returns the value of thedepartment
record component.dob()
Returns the value of thedob
record component.int
Returns the value of theemployeeID
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefirstName
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehourlyRate
record component.lastName()
Returns the value of thelastName
record component.Returns the value of thepagIbigNo
record component.Returns the value of thephilHealthNo
record component.Returns the value of thephoneAllowance
record component.phoneNum()
Returns the value of thephoneNum
record component.position()
Returns the value of theposition
record component.Returns the value of thericeSubsidy
record component.Returns the value of thesemiMonthlyRate
record component.sssNo()
Returns the value of thesssNo
record component.status()
Returns the value of thestatus
record component.Returns the value of thesupervisor
record component.tinNo()
Returns the value of thetinNo
record component.String[]
toArray()
Converts the EmployeeRecord to an array of strings.final String
toString()
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 aEmployeeRecord
record class.- Parameters:
employeeID
- the value for theemployeeID
record componentlastName
- the value for thelastName
record componentfirstName
- the value for thefirstName
record componentdob
- the value for thedob
record componentaddress
- the value for theaddress
record componentphoneNum
- the value for thephoneNum
record componentsssNo
- the value for thesssNo
record componentphilHealthNo
- the value for thephilHealthNo
record componentpagIbigNo
- the value for thepagIbigNo
record componenttinNo
- the value for thetinNo
record componentdepartment
- the value for thedepartment
record componentposition
- the value for theposition
record componentsupervisor
- the value for thesupervisor
record componentstatus
- the value for thestatus
record componentbasicSalary
- the value for thebasicSalary
record componentriceSubsidy
- the value for thericeSubsidy
record componentphoneAllowance
- the value for thephoneAllowance
record componentclothingAllowance
- the value for theclothingAllowance
record componentsemiMonthlyRate
- the value for thesemiMonthlyRate
record componenthourlyRate
- the value for thehourlyRate
record 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 theemployeeID
record component.- Returns:
- the value of the
employeeID
record component
-
lastName
Returns the value of thelastName
record component.- Returns:
- the value of the
lastName
record component
-
firstName
Returns the value of thefirstName
record component.- Returns:
- the value of the
firstName
record component
-
dob
Returns the value of thedob
record component.- Returns:
- the value of the
dob
record component
-
address
Returns the value of theaddress
record component.- Returns:
- the value of the
address
record component
-
phoneNum
Returns the value of thephoneNum
record component.- Returns:
- the value of the
phoneNum
record component
-
sssNo
Returns the value of thesssNo
record component.- Returns:
- the value of the
sssNo
record component
-
philHealthNo
Returns the value of thephilHealthNo
record component.- Returns:
- the value of the
philHealthNo
record component
-
pagIbigNo
Returns the value of thepagIbigNo
record component.- Returns:
- the value of the
pagIbigNo
record component
-
tinNo
Returns the value of thetinNo
record component.- Returns:
- the value of the
tinNo
record component
-
department
Returns the value of thedepartment
record component.- Returns:
- the value of the
department
record component
-
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
supervisor
Returns the value of thesupervisor
record component.- Returns:
- the value of the
supervisor
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
basicSalary
Returns the value of thebasicSalary
record component.- Returns:
- the value of the
basicSalary
record component
-
riceSubsidy
Returns the value of thericeSubsidy
record component.- Returns:
- the value of the
riceSubsidy
record component
-
phoneAllowance
Returns the value of thephoneAllowance
record component.- Returns:
- the value of the
phoneAllowance
record component
-
clothingAllowance
Returns the value of theclothingAllowance
record component.- Returns:
- the value of the
clothingAllowance
record component
-
semiMonthlyRate
Returns the value of thesemiMonthlyRate
record component.- Returns:
- the value of the
semiMonthlyRate
record component
-
hourlyRate
Returns the value of thehourlyRate
record component.- Returns:
- the value of the
hourlyRate
record component
-