Class Jobs

    • Constructor Detail

      • Jobs

        public Jobs()
        Constructs the Job without any parameters
      • Jobs

        public Jobs​(String jobTitle,
                    String company,
                    LocalDate dateApplied,
                    LocalDate dueDate,
                    String salary,
                    String jobDescription,
                    String nextAction,
                    String status,
                    double priority)
        Constructs the Jobs object
        Parameters:
        jobTitle - title of the job
        company - name of the company
        dateApplied - date of the application
        dueDate - due date of job
        salary - salary of job
        jobDescription - description of job
        nextAction - next action for job
        status - status of job
        priority - priority for job
    • Method Detail

      • getId

        public int getId()
        Getter for the Id field
        Returns:
        the id of the job
      • getStringId

        public String getStringId()
        Gets the id as a string for front end use
        Returns:
        the id as a string
      • setStringId

        public void setStringId​(String id)
        Sets the id from a string
        Parameters:
        id - the new id
      • setId

        public void setId​(int id)
        Sets the id
        Parameters:
        id - the new id
      • getJobTitle

        public String getJobTitle()
        Getter method for the title
        Returns:
        the name
      • setJobTitle

        public void setJobTitle​(String jobTitle)
        Setter method for the job title
        Parameters:
        jobTitle - the name to set
      • getCompany

        public String getCompany()
        Getter method for the company
        Returns:
        the company
      • setCompany

        public void setCompany​(String company)
        Setter for the company
        Parameters:
        company - the company to set
      • getDateApplied

        public LocalDate getDateApplied()
        Getter for the DateApplied field
        Returns:
        the dateApplied
      • setDateApplied

        public void setDateApplied​(LocalDate dateApplied)
        Setter for the DateApplied field
        Parameters:
        dateApplied - dateApplied to set
      • getDueDate

        public LocalDate getDueDate()
        Getter for the DueDate field
        Returns:
        the dueDate
      • setDueDate

        public void setDueDate​(LocalDate dueDate)
        Setter for the DueDate field
        Parameters:
        dueDate - dueDate to set
      • getSalary

        public String getSalary()
        Getter for the salary field
        Returns:
        the salary
      • setSalary

        public void setSalary​(String salary)
        Setter for the salary field
        Parameters:
        salary - salary to set
      • getJobDescription

        public String getJobDescription()
        Getter for the Job Description
        Returns:
        the jobDescription
      • setJobDescription

        public void setJobDescription​(String jobDescription)
        Setter for the Job Description
        Parameters:
        jobDescription - jobDescription to set
      • getNextAction

        public String getNextAction()
        Getter for the nextAction field
        Returns:
        the nextAction
      • setNextAction

        public void setNextAction​(String nextAction)
        Setter for the next action field
        Parameters:
        nextAction - nextAction to set
      • getStatus

        public String getStatus()
        Getter for the status field
        Returns:
        the status
      • setStatus

        public void setStatus​(String status)
        Setter for the status field
        Parameters:
        status - status to set
      • getPriority

        public double getPriority()
        Getter for the priority field
        Returns:
        the priority
      • setPriority

        public void setPriority​(double priority)
        Setter for the priority field
        Parameters:
        priority - priority to set
      • getRemindMeOn

        public String getRemindMeOn()
        Getter for the reminder field
        Returns:
        the dueDate
      • setRemindMeOn

        public void setRemindMeOn​(String remindMeOn)
        Setter for the reminder field
        Parameters:
        remindMeOn - reminder day
      • isNewJob

        public boolean isNewJob()
        Determines if the job is a new job or not
        Returns:
        true if the job is new
      • toString

        public String toString()
        Overrides the toString method to convert the object into a string
        Overrides:
        toString in class Object
        Returns:
        this object as a string
      • equals

        public boolean equals​(Jobs job2)
        Determines if this job application is equal to another
        Parameters:
        job2 - the other job being compared to
        Returns:
        true if the objects are equal
      • toSaveString

        public String toSaveString()
        Expresses the job as a string that is used to save the file
        Returns:
        the string representation of the job
      • dateToString

        public static String dateToString​(LocalDate date)
        Helper function that formats the date into a string
        Parameters:
        date - the date being formatted
        Returns:
        the string representation of the date
      • setLink

        public void setLink​(String link)
        Set the link for a Job posting
        Parameters:
        link - url for job posting
      • getLink

        public String getLink()
        Get the url for Job
        Returns:
        string url