BMPBEANPK.java~1~
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package com.miaoq.userjmssesenbdb;
- import java.io.*;
- public class BMPBEANPK
- implements Serializable {
- public String shancbz;
- public BMPBEANPK() {
- }
- public BMPBEANPK(String shancbz) {
- this.shancbz = shancbz;
- }
- public boolean equals(Object obj) {
- if (obj != null) {
- if (this.getClass().equals(obj.getClass())) {
- BMPBEANPK that = (BMPBEANPK) obj;
- return ( ( (this.shancbz == null) && (that.shancbz == null)) ||
- (this.shancbz != null && this.shancbz.equals(that.shancbz)));
- }
- }
- return false;
- }
- public int hashCode() {
- return shancbz.hashCode();
- }
- }