package de.pointedears.converter.db; import java.util.Date; /** * Stores conversion data for a currency * * @author pelinux */ public class ConversionData { private double rate; private Date updated; /** * @param rate * 1 EUR equals this value in a currency * @param updated * Date that the rate was updated */ public ConversionData(Double rate, Date updated) { this.setRate(rate); this.setUpdated(updated); } /** * @return the rate */ public Double getRate() { return this.rate; } /** * @param rate * the rate to set */ public void setRate(Double rate) { this.rate = rate; } /** * @return the updated */ public Date getUpdated() { return this.updated; } /** * @param updated * the updated to set */ public void setUpdated(Date updated) { this.updated = updated; } }