Package records

Record Class EmployeeRecord

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 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 a EmployeeRecord record class.
      Parameters:
      employeeID - the value for the employeeID record component
      lastName - the value for the lastName record component
      firstName - the value for the firstName record component
      dob - the value for the dob record component
      address - the value for the address record component
      phoneNum - the value for the phoneNum record component
      sssNo - the value for the sssNo record component
      philHealthNo - the value for the philHealthNo record component
      pagIbigNo - the value for the pagIbigNo record component
      tinNo - the value for the tinNo record component
      department - the value for the department record component
      position - the value for the position record component
      supervisor - the value for the supervisor record component
      status - the value for the status record component
      basicSalary - the value for the basicSalary record component
      riceSubsidy - the value for the riceSubsidy record component
      phoneAllowance - the value for the phoneAllowance record component
      clothingAllowance - the value for the clothingAllowance record component
      semiMonthlyRate - the value for the semiMonthlyRate record component
      hourlyRate - the value for the hourlyRate record component
  • Method Details

    • toArray

      public String[] toArray()
      Converts the EmployeeRecord to an array of strings.
      Returns:
      an array of strings representing the EmployeeRecord
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • employeeID

      public int employeeID()
      Returns the value of the employeeID record component.
      Returns:
      the value of the employeeID record component
    • lastName

      public String lastName()
      Returns the value of the lastName record component.
      Returns:
      the value of the lastName record component
    • firstName

      public String firstName()
      Returns the value of the firstName record component.
      Returns:
      the value of the firstName record component
    • dob

      public String dob()
      Returns the value of the dob record component.
      Returns:
      the value of the dob record component
    • address

      public String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • phoneNum

      public String phoneNum()
      Returns the value of the phoneNum record component.
      Returns:
      the value of the phoneNum record component
    • sssNo

      public String sssNo()
      Returns the value of the sssNo record component.
      Returns:
      the value of the sssNo record component
    • philHealthNo

      public String philHealthNo()
      Returns the value of the philHealthNo record component.
      Returns:
      the value of the philHealthNo record component
    • pagIbigNo

      public String pagIbigNo()
      Returns the value of the pagIbigNo record component.
      Returns:
      the value of the pagIbigNo record component
    • tinNo

      public String tinNo()
      Returns the value of the tinNo record component.
      Returns:
      the value of the tinNo record component
    • department

      public String department()
      Returns the value of the department record component.
      Returns:
      the value of the department record component
    • position

      public String position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • supervisor

      public String supervisor()
      Returns the value of the supervisor record component.
      Returns:
      the value of the supervisor record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • basicSalary

      public Double basicSalary()
      Returns the value of the basicSalary record component.
      Returns:
      the value of the basicSalary record component
    • riceSubsidy

      public Double riceSubsidy()
      Returns the value of the riceSubsidy record component.
      Returns:
      the value of the riceSubsidy record component
    • phoneAllowance

      public Double phoneAllowance()
      Returns the value of the phoneAllowance record component.
      Returns:
      the value of the phoneAllowance record component
    • clothingAllowance

      public Double clothingAllowance()
      Returns the value of the clothingAllowance record component.
      Returns:
      the value of the clothingAllowance record component
    • semiMonthlyRate

      public Double semiMonthlyRate()
      Returns the value of the semiMonthlyRate record component.
      Returns:
      the value of the semiMonthlyRate record component
    • hourlyRate

      public Double hourlyRate()
      Returns the value of the hourlyRate record component.
      Returns:
      the value of the hourlyRate record component