idnametype.java
来自「dgbas公文管理核心java源码」· Java 代码 · 共 47 行
JAVA
47 行
package com.jestdoc.flowtools;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: wingroup</p>
* @author huangtao
* @version 1.0
*/
public class IDNameType extends IDNameClass implements Cloneable{
int type;
public IDNameType(int id, String name, int type){
this.id = id;
this.name = name;
this.type = type;
if(name == null)
this.name = "";
}
public IDNameType(){
this(-1, "", -1);
}
public boolean equals(Object obj){
if(obj != null && obj instanceof IDNameType){
IDNameType idNameType = (IDNameType)obj;
if(this.id == idNameType.id && this.name.equals(idNameType.name)
&& this.type == idNameType.type)
return true;
}
return false;
}
public Object clone(){
IDNameType idNameType = (IDNameType)super.clone();
idNameType.type = this.type;
return idNameType;
}
public int getType(){
return this.type;
}
public void setType(int type){
this.type = type;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?