换汤不换药之家庭记账本app开发(bean)
package bean;
public class user {
private String date;
private String eat;
private String play;
private String clothes;
private String live;
private String usual;
public user() {}
public user(String date2, String eat2, String play2, String clothes2, String live2, String usual2) {
date=date2;
eat=eat2;
play=play2;
clothes=clothes2;
live=live2;
usual=usual2;
}
public String get(String str) {
String temp = null;
if(str.equals("eat")) {
temp=eat;
}else if(str.equals("date")) {
temp=date;
}else if(str.equals("play")) {
temp=play;
}else if(str.equals("clothes")) {
temp=clothes;
}else if(str.equals("live")) {
temp=live;
}else if(str.equals("usual")) {
temp=usual;
}
return temp;
}
public void set(String str,String temp) {
if(str.equals("eat")) {
eat=temp;
}else if(str.equals("date")) {
date=temp;
}else if(str.equals("play")) {
play=temp;
}else if(str.equals("clothes")) {
clothes=temp;
}else if(str.equals("live")) {
live=temp;
}else if(str.equals("usual")) {
usual=temp;
}
}
public String getEat() {
return eat;
}
public String getDate() {
return date;
}
public String getPlay() {
return play;
}
public String getClothes() {
return clothes;
}
public String getLive() {
return live;
}
public String getUsual() {
return usual;
}
public void setEat(String eat) {
this.eat = eat;
}
public void setDate(String date) {
this.date = date;
}
public void setPlay(String play) {
this.play = play;
}
public void setClothes(String clothes) {
this.clothes = clothes;
}
public void setLive(String live) {
this.live = live;
}
public void setUsual(String usual) {
this.usual = usual;
}
}