package zuoye; import java.util.Objects; public class Edu { int id; int userId; String start; String end; String school; String study; String description; Edu next; public Edu(int id, int userId, String start, String end, String school, String study, String description, Edu next) { this.id = id; this.userId = userId; this.start = start; this.end = end; this.school = school; this.study = study; this.description = description; this.next = next; } public Edu() { } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getStart() { return start; } public void setStart(String start) { this.start = start; } public String getEnd() { return end; } public void setEnd(String end) { this.end = end; } public String getSchool() { return school; } public void setSchool(String school) { this.school = school; } public String getStudy() { return study; } public void setStudy(String study) { this.study = study; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Edu getNext() { return next; } public void setNext(Edu next) { this.next = next; } @Override public String toString() { return "Edu{" + "id=" + id + ", userId=" + userId + ", start='" + start + '\'' + ", end='" + end + '\'' + ", school='" + school + '\'' + ", study='" + study + '\'' + ", description='" + description + '\'' + ", next=" + next + '}'; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Edu edu = (Edu) o; return id == edu.id && userId == edu.userId && Objects.equals(start, edu.start) && Objects.equals(end, edu.end) && Objects.equals(school, edu.school) && Objects.equals(study, edu.study) && Objects.equals(description, edu.description) && Objects.equals(next, edu.next); } @Override public int hashCode() { return Objects.hash(id, userId, start, end, school, study, description, next); } }
Java实训1月24日
最新推荐文章于 2024-08-16 23:08:28 发布