66676869707172737475
} public SubscriberEntry addCall(String number, PhoneCall call) { SubscriberEntry entry = findByNumber(number); if (entry == null) { throw new UnexistingElementException("Cant add call to unexisting entry."); } entry.addCall(call); return entry; }
75767778798081828384
} public SubscriberEntry removeCall(String number, PhoneCall call) { SubscriberEntry entry = findByNumber(number); if (entry == null) { throw new UnexistingElementException("Cant remove from unexisting entry."); } entry.removeCall(call); return entry; }