Android Open Source - FastBudget3 Expense

From Project

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.

Java Source Code

package de.splitstudio.fastbudget3.db;
/*  w ww  .j a  v  a 2 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.amount = amount;
    this.description = description;

  public Expense(Date date) {
    super(); = date;

  public int compareTo(Expense other) {
    int dateComparison =;
    if (dateComparison != 0) {
      return dateComparison;
    return equals(other) ? 0 : 1;


Java Source Code List