commit | author | age
|
66d68b
|
1 |
/* |
U |
2 |
Zeitrechnung - a class library to determine calendar events |
|
3 |
Copyright (c) 1984-2023 Ulrich Hilger, http://uhilger.de |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as published by |
|
7 |
the Free Software Foundation, either version 3 of the License, or |
|
8 |
(at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
package de.uhilger.zeitrechnung; |
|
19 |
|
|
20 |
/** |
|
21 |
* Einfache Klasse fuer eine Zeit bestehend aus |
|
22 |
* Stunde, Minute, Sekunde. |
|
23 |
* |
|
24 |
* @author Ulrich Hilger |
|
25 |
*/ |
|
26 |
public class Zeit { |
|
27 |
private int stunde; |
|
28 |
private int minute; |
|
29 |
private double sekunde; |
|
30 |
|
|
31 |
public Zeit() { |
|
32 |
super(); |
|
33 |
} |
|
34 |
|
|
35 |
public Zeit(int stunde, int minute, double sekunde) { |
|
36 |
this(); |
|
37 |
setStunde(stunde); |
|
38 |
setMinute(minute); |
|
39 |
setSekunde(sekunde); |
|
40 |
} |
|
41 |
|
|
42 |
public void setStunde(int s) { |
|
43 |
this.stunde = s; |
|
44 |
} |
|
45 |
|
|
46 |
public int getStunde() { |
|
47 |
return stunde; |
|
48 |
} |
|
49 |
|
|
50 |
public void setMinute(int m) { |
|
51 |
this.minute = m; |
|
52 |
} |
|
53 |
|
|
54 |
public int getMinute() { |
|
55 |
return minute; |
|
56 |
} |
|
57 |
|
|
58 |
public void setSekunde(double s) { |
|
59 |
this.sekunde = s; |
|
60 |
} |
|
61 |
|
|
62 |
public double getSekunde() { |
|
63 |
return sekunde; |
|
64 |
} |
|
65 |
} |