History
unknown
plain_text
2 years ago
1.5 kB
6
Indexable
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package s000013; /** * * @author MSI GTX */ public class History extends Worker implements Comparable<History> { private String status; private String date; /** * */ public History() { } /** * * @param status * @param date * @param id * @param name * @param age * @param salary * @param workLocation */ public History(String status, String date, String id, String name, int age, int salary, String workLocation) { super(id, name, age, salary, workLocation); this.status = status; this.date = date; } /** * * @return */ public String getStatus() { return status; } /** * * @param status */ public void setStatus(String status) { this.status = status; } /** * * @return */ public String getDate() { return date; } /** * * @param date */ public void setDate(String date) { this.date = date; } @Override public int compareTo(History t) { return this.getId().compareTo(t.getId()); } }
Editor is loading...