Skip to content

Instantly share code, notes, and snippets.

@bharatkrishna
Created March 16, 2013 05:23
Show Gist options
  • Save bharatkrishna/5175105 to your computer and use it in GitHub Desktop.
Save bharatkrishna/5175105 to your computer and use it in GitHub Desktop.
import android.util.Log;
public class TransactionItem {
private String description;
private String tag;
private String date;
private float amount;
private int type;
public String getDescription() {
Log.d("item-get", description); // Code doesn't seem to reach here
return description;
}
public void setDescription(String description) {
Log.d("item-set", description); // This is printed
this.description = description;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public float getAmount() {
return amount;
}
public void setAmount(float amount) {
this.amount = amount;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment