1 25 26 28 package org.objectweb.jonas.jtests.beans.beanexc; 29 30 public class AccountPK implements java.io.Serializable { 31 32 public int number; 33 34 public AccountPK(int number) { 35 this.number = number; 36 } 37 38 public AccountPK() { 39 } 40 41 public int hashCode() { 42 return number; 43 } 44 45 public boolean equals(Object other) { 46 boolean isEqual = false; 47 if (other instanceof AccountPK) { 48 isEqual = (number == ((AccountPK) other).number); 49 } 50 return isEqual; 51 } 52 53 } 54 | Popular Tags |