2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jcontactsbusiness.opening_times;
19 import java.io.Serializable;
20 import java.time.DayOfWeek;
21 import java.util.Calendar;
24 * A POJI for opening times
26 * @author Roland Haeder<roland@mxchange.org>
28 public interface OpeningTimes extends Serializable {
31 * Getter for id number
38 * Setter for id number
42 void setId (final Long id);
45 * Getter for starting day
47 * @return Starting day
49 DayOfWeek getStartDay ();
52 * Setter for starting day
54 * @param startDay Starting day
56 void setStartDay (final DayOfWeek startDay);
59 * Getter for ending day
63 DayOfWeek getEndDay ();
66 * Setter for ending day
68 * @param endDay Ending day
70 void setEndDay (final DayOfWeek endDay);
73 * Getter for starting time
75 * @return Starting time
77 Calendar getStartTime ();
80 * Setter for starting time
82 * @param startTime Starting time
84 void setStartTime (final Calendar startTime);
87 * Getter for ending time
91 Calendar getEndTime ();
94 * Setter for ending time
96 * @param endTime Ending time
98 void setEndTime (final Calendar endTime);
101 boolean equals (final Object obj);