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 ein Datum bestehend aus |
|
22 |
* Jahr, Monat und Tag. |
|
23 |
* |
|
24 |
* @author Ulrich Hilger |
|
25 |
*/ |
|
26 |
public class Datum { |
|
27 |
|
|
28 |
private long jahr; |
|
29 |
private int monat; |
|
30 |
private int tag; |
|
31 |
|
|
32 |
public Datum() { |
|
33 |
super(); |
|
34 |
} |
|
35 |
|
|
36 |
public Datum(long jahr, int monat, int tag) { |
|
37 |
this.jahr = jahr; |
|
38 |
this.monat = monat; |
|
39 |
this.tag = tag; |
|
40 |
} |
|
41 |
|
|
42 |
public long getJahr() { |
|
43 |
return jahr; |
|
44 |
} |
|
45 |
|
|
46 |
public void setJahr(long jahr) { |
|
47 |
this.jahr = jahr; |
|
48 |
} |
|
49 |
|
|
50 |
public int getMonat() { |
|
51 |
return monat; |
|
52 |
} |
|
53 |
|
|
54 |
public void setMonat(int monat) { |
|
55 |
this.monat = monat; |
|
56 |
} |
|
57 |
|
|
58 |
public int getTag() { |
|
59 |
return tag; |
|
60 |
} |
|
61 |
|
|
62 |
public void setTag(int tag) { |
|
63 |
this.tag = tag; |
|
64 |
} |
|
65 |
|
|
66 |
} |