/* * myLazyClock * * Copyright (C) 2014 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.myLazyClock.calendarApi; import java.util.Date; /** * Created on 16/11/14. * * @author dralagen */ public class CalendarEvent implements Comparable<CalendarEvent> { private Date beginDate; private Date endDate; private String name; private String address; public Date getBeginDate() { return beginDate; } public void setBeginDate(Date beginDate) { this.beginDate = beginDate; } public Date getEndDate() { return endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress () { return address; } public void setAddress (String address) { this.address = address; } @Override public int compareTo(CalendarEvent o) { return beginDate.compareTo(o.beginDate); } }