📄 302a7506c686001b1e499899eff7cdd5
字号:
package com.tangjun.web.bo;
import java.io.Serializable;
public abstract class AbstractBlog implements Serializable {
/**
* The cached hash code value for this instance. Settting to 0 triggers
* re-calculation.
*/
private int hashValue = 0;
/** The composite primary key value. */
private java.lang.Integer id;
/** The value of the simple message property. */
private java.lang.String message;
public AbstractBlog() {
}
public AbstractBlog(java.lang.Integer id) {
this.setId(id);
}
public java.lang.Integer getId() {
return id;
}
public void setId(java.lang.Integer id) {
this.hashValue = 0;
this.id = id;
}
public java.lang.String getMessage() {
return message;
}
public void setMessage(java.lang.String message) {
this.message = message;
}
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof BlogEntry))
return false;
BlogEntry that = (BlogEntry) rhs;
if (this.getId() == null || that.getId() == null)
return false;
return (this.getId().equals(that.getId()));
}
public int hashCode()
{
if (this.hashValue == 0)
{
int result = 17;
int idValue = this.getId() == null ? 0 : this.getId().hashCode();
result = result * 37 + idValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -