Java/Section04-Lists/Lists-Singly-Linked-Lists-(Implementation)-Source-Code/src/academy/learnprogramming/linkedlists/EmployeeNode.java
package academy.learnprogramming.linkedlists;

public class EmployeeNode {

    private Employee employee;
    private EmployeeNode next;

    public EmployeeNode(Employee employee) {
        this.employee = employee;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public EmployeeNode getNext() {
        return next;
    }

    public void setNext(EmployeeNode next) {
        this.next = next;
    }

    public String toString() {
        return employee.toString();
    }
}
