2 * Copyright (C) 2016 - 2020 Free Software Foundation
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.model.opening_time;
19 import java.io.Serializable;
20 import java.util.Date;
21 import org.mxchange.jcoreutils.dayoftheweek.DayOfTheWeek;
24 * A POJI for opening times
26 * @author Roland Häder<roland@mxchange.org>
28 public interface OpeningTime extends Comparable<OpeningTime>, Serializable {
31 * Getter for opening time created timestamp
33 * @return Opening time created timestamp
35 Date getOpeningTimeEntryCreated ();
38 * Setter for opening time created timestamp
40 * @param openingTimeEntryCreated Opening time created timestamp
42 void setOpeningTimeEntryCreated (final Date openingTimeEntryCreated);
45 * Getter for opening time updated timestamp
47 * @return Opening time updated timestamp
49 Date getOpeningTimeEntryUpdated ();
52 * Setter for opening time updated timestamp
54 * @param openingTimeEntryUpdated Opening time updated timestamp
56 void setOpeningTimeEntryUpdated (final Date openingTimeEntryUpdated);
59 * Getter for id number
63 Long getOpeningTimeId ();
66 * Setter for id number
68 * @param openingTimeId Id number
70 void setOpeningTimeId (final Long openingTimeId);
73 * Getter for starting day
75 * @return Starting day
77 DayOfTheWeek getOpeningStartDay ();
80 * Setter for starting day
82 * @param openingStartDay Starting day
84 void setOpeningStartDay (final DayOfTheWeek openingStartDay);
87 * Getter for ending day
91 DayOfTheWeek getOpeningEndDay ();
94 * Setter for ending day
96 * @param openinhEndDay Ending day
98 void setOpeningEndDay (final DayOfTheWeek openinhEndDay);
101 * Getter for starting time
103 * @return Starting time
105 Date getOpeningStartTime ();
108 * Setter for starting time
110 * @param openingStartTime Starting time
112 void setOpeningStartTime (final Date openingStartTime);
115 * Getter for ending time
117 * @return Ending time
119 Date getOpeningEndTime ();
122 * Setter for ending time
124 * @param openingEndTime Ending time
126 void setOpeningEndTime (final Date openingEndTime);
129 boolean equals (final Object obj);