Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
17 | PointedEar | 1 | package de.pointedears.converter.db; |
2 | |||
3 | import java.util.Date; |
||
4 | |||
5 | /** |
||
6 | * Stores conversion data for a currency |
||
7 | * |
||
8 | * @author pelinux |
||
9 | */ |
||
10 | public class ConversionData |
||
11 | { |
||
12 | private double rate; |
||
13 | private Date updated; |
||
14 | |||
15 | /** |
||
16 | * @param rate |
||
17 | * 1 EUR equals this value in a currency |
||
18 | * @param updated |
||
19 | * Date that the rate was updated |
||
20 | */ |
||
21 | public ConversionData(Double rate, Date updated) |
||
22 | { |
||
23 | this.setRate(rate); |
||
24 | this.setUpdated(updated); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return the rate |
||
29 | */ |
||
30 | public Double getRate() |
||
31 | { |
||
32 | return this.rate; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param rate |
||
37 | * the rate to set |
||
38 | */ |
||
39 | public void setRate(Double rate) |
||
40 | { |
||
41 | this.rate = rate; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return the updated |
||
46 | */ |
||
47 | public Date getUpdated() |
||
48 | { |
||
49 | return this.updated; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param updated |
||
54 | * the updated to set |
||
55 | */ |
||
56 | public void setUpdated(Date updated) |
||
57 | { |
||
58 | this.updated = updated; |
||
59 | } |
||
60 | } |