]> git.mxchange.org Git - jcontacts-business-core.git/blob - src/org/mxchange/jcontactsbusiness/opening_times/OpeningTimes.java
added constructors and made endTime/startTime not nullable
[jcontacts-business-core.git] / src / org / mxchange / jcontactsbusiness / opening_times / OpeningTimes.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.jcontactsbusiness.opening_times;
18
19 import java.io.Serializable;
20 import java.time.DayOfWeek;
21 import java.util.Calendar;
22
23 /**
24  * A POJI for opening times
25  *
26  * @author Roland Haeder<roland@mxchange.org>
27  */
28 public interface OpeningTimes extends Serializable {
29
30         /**
31          * Getter for id number
32          * <p>
33          * @return Id number
34          */
35         Long getId ();
36
37         /**
38          * Setter for id number
39          * <p>
40          * @param id Id number
41          */
42         void setId (final Long id);
43
44         /**
45          * Getter for starting day
46          * <p>
47          * @return Starting day
48          */
49         DayOfWeek getStartDay ();
50
51         /**
52          * Setter for starting day
53          * <p>
54          * @param startDay Starting day
55          */
56         void setStartDay (final DayOfWeek startDay);
57
58         /**
59          * Getter for ending day
60          * <p>
61          * @return Ending day
62          */
63         DayOfWeek getEndDay ();
64
65         /**
66          * Setter for ending day
67          * <p>
68          * @param endDay Ending day
69          */
70         void setEndDay (final DayOfWeek endDay);
71
72         /**
73          * Getter for starting time
74          * <p>
75          * @return Starting time
76          */
77         Calendar getStartTime ();
78
79         /**
80          * Setter for starting time
81          * <p>
82          * @param startTime Starting time
83          */
84         void setStartTime (final Calendar startTime);
85
86         /**
87          * Getter for ending time
88          * <p>
89          * @return Ending time
90          */
91         Calendar getEndTime ();
92
93         /**
94          * Setter for ending time
95          * <p>
96          * @param endTime Ending time
97          */
98         void setEndTime (final Calendar endTime);
99
100         @Override
101         boolean equals (final Object obj);
102
103         @Override
104         int hashCode ();
105
106 }