Back to project page TrackEveryPenny.
The source code is released under:
Apache License
If you think the Android project TrackEveryPenny 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 ca.jbrains.upfp.model; /*ww w . j a v a2 s .c o m*/ import ca.jbrains.toolkit.ProgrammerMistake; import org.joda.time.LocalDate; public class Transaction { private final LocalDate date; private final Category category; private final Amount amount; public Transaction( LocalDate date, Category category, Amount amount ) { if (date == null) throw new ProgrammerMistake( "A Transaction must have a date."); if (category == null) throw new ProgrammerMistake( "A Transaction must have a category."); if (amount == null) throw new ProgrammerMistake( "A Transaction must have an amount."); this.date = date; this.category = category; this.amount = amount; } public LocalDate getDate() { return date; } public Category getCategory() { return category; } public Amount getAmount() { return amount; } }