FileDocCategorySizeDatePackage
CustomerKey.javaAPI DocExample559Mon Nov 24 22:06:38 GMT 2003com.oreilly.patterns.chapter9

CustomerKey

public final class CustomerKey extends Object implements Serializable

Fields Summary
public int
customerId
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object otherOb)

        
        if (this == otherOb) {
            return true;
        }
        if (!(otherOb instanceof CustomerKey)) {
            return false;
        }
        
	CustomerKey other = (CustomerKey) otherOb;
        
	return (customerId == other.customerId);
    
public inthashCode()

        return customerId;