Exemplo n.º 1
0
 /**
  * Removes the address.
  *
  * @param address the address
  */
 public void removeAddress(Address address) {
   this.addresses.remove(address);
   address.setOwner(null);
 }
Exemplo n.º 2
0
 /**
  * Adds the address.
  *
  * @param address the address
  */
 public void addAddress(Address address) {
   address.setOwner(this);
   this.addresses.add(address);
 }