Back to project page FastBudget3.
The source code is released under:
GNU General Public License
If you think the Android project FastBudget3 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.splitstudio.fastbudget3.db; /* w ww .j a v a 2 s.co m*/ import java.util.Date; import de.splitstudio.utils.db.UniqueEntity; public class Expense extends UniqueEntity implements Comparable<Expense> { public int amount; public Date date; public String description; public Expense(int amount, Date date, String description) { this(date); this.amount = amount; this.description = description; } public Expense(Date date) { super(); this.date = date; } @Override public int compareTo(Expense other) { int dateComparison = other.date.compareTo(date); if (dateComparison != 0) { return dateComparison; } return equals(other) ? 0 : 1; } }