您的位置:首页 > 编程语言 > Java开发

Java model 对象处理

2016-06-08 16:19 393 查看
public class BaseFlowBo {

/**
* 流量
*/
private String flow;

/**
* Pv
*/
private String pv;
/**
* CTR
*/
private String ctr;

/**
* CPM
*/
private String cpm;

/**
* CPC
*/
private String cpc;

public String getFlow() {
return new DecimalFormat(",###").format(Long.parseLong(flow));
}

public void setFlow(String flow) {
this.flow = flow;
}

public String getPv() {
return new DecimalFormat(",###").format(Long.parseLong(pv));
}

public void setPv(String pv) {
this.pv = pv;
}

public String getCtr() {
return ctr+"%";
}

public void setCtr(String ctr) {
this.ctr = ctr;
}

public String getCpm() {
return "¥"+cpm;
}

public void setCpm(String cpm) {
this.cpm = cpm;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: