FileDocCategorySizeDatePackage
AddressBookEntryKey.javaAPI DocExample1043Sun Jul 06 01:05:36 BST 2003antipatterns.ejbs

AddressBookEntryKey.java

package antipatterns.ejbs;

/**
 * Created Feb 1, 2003 4:16:41 PM
 * Code generated by the Sun ONE Studio EJB Builder
 * @author jon
 */

public final class AddressBookEntryKey implements java.io.Serializable {
    
    public int entryId;
    
    public AddressBookEntryKey() {}
    public AddressBookEntryKey(int entryId) {
        this.entryId = entryId;
    }
    
    /**
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals(java.lang.Object otherOb) {
        
        if (this == otherOb) {
            return true;
        }
        if (!(otherOb instanceof antipatterns.ejbs.AddressBookEntryKey)) {
            return false;
        }
        antipatterns.ejbs.AddressBookEntryKey other = (antipatterns.ejbs.AddressBookEntryKey) otherOb;
        return (
        
        (entryId == other.entryId)
        
        );
    }
    
    /**
     * @see java.lang.Object#hashCode()
     */
    public int hashCode() {
        return (
        
        ((int) entryId)
        
        );
    }
    
}