com.frameworkset.common.bean.ValueObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-util Show documentation
Show all versions of bboss-util Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
/*
* Created on 2004-6-3
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.frameworkset.common.bean;
import java.io.Serializable;
/**
* @author biaoping.yin
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public abstract class ValueObject implements Serializable
{
/**
* 获取值对象的关键字
* @return 返回值对象的关键字
*/
public abstract Object getKey();
/**
* 设置值对象的关键字
*/
public abstract void setKey(Object key);
public boolean equals(Object obj)
{
if(obj == null)
return false;
ValueObject vo = (ValueObject)obj;
if(this.getKey() == vo.getKey())
return true;
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy