?? tpricing.java
字號:
package tarena.netctoss.model;
import java.io.Serializable;
/**
* 資費類
* @author hongye
*
*/
public class Tpricing implements Serializable {
/**
* id 資費編碼(pk)
* name 資費名稱
* baseFee 月租費
* rateFee 每小時費用
* desc 資費描述
*/
private Integer id;
private String name;
private Double baseFee;
private Double rateFee;
private String desc;
public Tpricing() {
super();
}
public Tpricing(Integer id, String name, Double baseFee, Double rateFee, String desc) {
super();
this.id = id;
this.name = name;
this.baseFee = baseFee;
this.rateFee = rateFee;
this.desc = desc;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getBaseFee() {
return baseFee;
}
public void setBaseFee(Double baseFee) {
this.baseFee = baseFee;
}
public Double getRateFee() {
return rateFee;
}
public void setRateFee(Double rateFee) {
this.rateFee = rateFee;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return id + ":" + name;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((baseFee == null) ? 0 : baseFee.hashCode());
result = prime * result + ((desc == null) ? 0 : desc.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((rateFee == null) ? 0 : rateFee.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Tpricing other = (Tpricing) obj;
if (baseFee == null) {
if (other.baseFee != null)
return false;
} else if (!baseFee.equals(other.baseFee))
return false;
if (desc == null) {
if (other.desc != null)
return false;
} else if (!desc.equals(other.desc))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (rateFee == null) {
if (other.rateFee != null)
return false;
} else if (!rateFee.equals(other.rateFee))
return false;
return true;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -