📄 status.java
字号:
package entity;
/**
* @author yangan
*/
public class Status {
public final static Status Sure = new Status("SURE");
public final static Status NoSure = new Status("NOSURE");
private String status;
private Status(String status) {
super();
this.status = status;
}
/**
* @return Returns the status.
* @uml.property name="status"
*/
public String getStatus() {
return status;
}
@Override
public boolean equals(Object obj) {
boolean result = false;
Status _cell;
if (obj == this) {
result = true;
} else {
if (obj instanceof Status) {
_cell = (Status) obj;
if (_cell.getStatus().equals(this.getStatus())) {
result = true;
}
}
}
return result;
}
@Override
public int hashCode() {
int result = 0;
for (int i = 0; i < this.getStatus().length(); i++) {
result = 37 * result
+ this.getStatus().substring(i, i + 1).hashCode();
}
return result;
}
public String toString() {
return this.getStatus();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -