Creates a new, empty address object with the specified name.
the ID of the address to create, must not be null.
the new address object or null if an address with the given name already exists in the address book.
If passed 'name' is null.
If passed 'name' is not null, but an empty string.
Returns the address with the given name from the address book. The name
is a unique identifier of the address within the address book.
An address ID, must not be null.
The Address object or null if the address does not exist.
If passed 'id' is null.
If passed 'id' is not null, but an empty string.
Returns a sorted list of addresses in the address book. The addresses
are sorted so that the preferred address is always sorted first. The
remaining addresses are sorted alphabetically by ID.
Sorted List of customer addresses in the address book.
Returns the address that has been defined as the customer's preferred
the default CustomerAddress object, or null if there is no preferred address.
Removes the specified address from the address book. Because an address
can be associated with a product list, you may want to verify if the
address is being used by a product list. See ProductListMgr.findAddress().
the address to remove, must not be null.
Sets the specified address as the customer's preferred address. If null
is passed, and there is an existing preferred address, then the address
book will have no preferred address.
the address to be set as preferred, or null if the goal is to unset the existing preferred address.