this.customerId = customerId; this.type = type;
if ( !(other instanceof AddressId) ) return false; AddressId add = (AddressId) other; return type.equals(add.type) && customerId.equals(add.customerId);
return customerId;
return type;
return customerId.hashCode() + type.hashCode();
this.customerId = customerId;
this.type = type;