예제 #1
0
 public void removeBookTitle(BookTitle bt) {
   bookTitles.remove(bt);
   bt.removeCustomer(this);
 }
예제 #2
0
 // Associations
 public void addBookTitle(BookTitle bt) {
   if (!bookTitles.contains(bt)) {
     bookTitles.add(bt);
     bt.addCustomer(this);
   }
 }