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