favoritesid.java
来自「论坛软件系统亦称电子公告板(BBS)系统」· Java 代码 · 共 68 行
JAVA
68 行
package cn.jsprun.domain;
public class FavoritesId implements java.io.Serializable {
private static final long serialVersionUID = 8791630942082395054L;
private Integer uid;
private Integer tid;
private Short fid;
public FavoritesId() {
}
public FavoritesId(Integer uid, Integer tid, Short fid) {
this.uid = uid;
this.tid = tid;
this.fid = fid;
}
public Integer getUid() {
return this.uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public Integer getTid() {
return this.tid;
}
public void setTid(Integer tid) {
this.tid = tid;
}
public Short getFid() {
return this.fid;
}
public void setFid(Short fid) {
this.fid = fid;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof FavoritesId) ) return false;
FavoritesId castOther = ( FavoritesId ) other;
return ( (this.getUid()==castOther.getUid()) || ( this.getUid()!=null && castOther.getUid()!=null && this.getUid().equals(castOther.getUid()) ) )
&& ( (this.getTid()==castOther.getTid()) || ( this.getTid()!=null && castOther.getTid()!=null && this.getTid().equals(castOther.getTid()) ) )
&& ( (this.getFid()==castOther.getFid()) || ( this.getFid()!=null && castOther.getFid()!=null && this.getFid().equals(castOther.getFid()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getUid() == null ? 0 : this.getUid().hashCode() );
result = 37 * result + ( getTid() == null ? 0 : this.getTid().hashCode() );
result = 37 * result + ( getFid() == null ? 0 : this.getFid().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?