jfpk.java

来自「STRUTS数据库项目开发宝典」· Java 代码 · 共 111 行

JAVA
111
字号
/*
 * Author :Cao guangxin
 * on 26-三月-2005 at 09:54:55
 * 
 * Mail:relationinfo@hotmail.com
 * 
 * visit:www.relaioninfo.com or www.helpsoft.org
 */

package org.helpsoft.contract.dto;

import java.io.Serializable;
import java.util.Date;


public class JfPk implements Serializable
{
	private String jfbm;

	/** 
	 * Sets the value of jfbm
	 */
	public void setJfbm(String jfbm)
	{
		this.jfbm = jfbm;
	}

	/** 
	 * Gets the value of jfbm
	 */
	public String getJfbm()
	{
		return jfbm;
	}

	/**
	 * Method 'JfPk'
	 * 
	 */
	public JfPk()
	{
	}

	/**
	 * Method 'JfPk'
	 * 
	 * @param jfbm
	 */
	public JfPk(final String jfbm)
	{
		this.jfbm = jfbm;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof JfPk)) {
			return false;
		}
		
		final JfPk _cast = (JfPk) _other;
		if (jfbm == null ? _cast.jfbm != jfbm : !jfbm.equals( _cast.jfbm )) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		if (jfbm != null) {
			_hashCode = 29 * _hashCode + jfbm.hashCode();
		}
		
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "org.helpsoft.contract.dto.JfPk: " );
		ret.append( "jfbm='" + jfbm + "'" );
		return ret.toString();
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?