1 package net.ktnx.mobileledger;
3 class LedgerTransactionItem {
4 private String account_name;
6 private boolean amount_set;
8 LedgerTransactionItem(String account_name, float amount) {
9 this.account_name = account_name;
11 this.amount_set = true;
14 public LedgerTransactionItem(String account_name) {
15 this.account_name = account_name;
18 public String get_account_name() {
22 public void set_account_name(String account_name) {
23 this.account_name = account_name;
26 public float get_amount() {
28 throw new IllegalStateException("Account amount is not set");
33 public void set_amount(float account_amount) {
34 this.amount = account_amount;
35 this.amount_set = true;
38 public void reset_amount() {
39 this.amount_set = false;
42 public boolean is_amount_set() {