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