1 | void addContact(IContactItem item) {↵ | | 1 | void addContact(IContact↵
|
2 | if (item↵ | | 2 | ModelPartial modelPartial) {↵
|
3 | == null)↵ | | 3 | if ( modelPartial == null↵
|
4 | throw new IllegalArgumentException("item == null");↵ | | 4 | ) throw new IllegalArgumentException("modelPartial == null");↵
|
5 | ↵ | | 5 | ↵
|
6 | list.add(item);↵ | | 6 | list.add(↵
|
7 | }↵ | | |
|
|
8 | /* (non-Javadoc)↵ | | |
|
9 | * @see org.columba.addressbook.facade.IGroupItem#removeContact(org.columba.addressbook.facade.IContactItem)↵ | | |
|
10 | */↵ | | 7 | modelPartial);↵
|
| | | 8 | }↵
|
|
11 | public void removeContact(IContactItem item) {↵ | | 9 | public void removeContact(IContact↵
|
12 | if (item↵ | | 10 | ModelPartial modelPartial) {↵
|
13 | == null)↵ | | 11 | if ( modelPartial == null↵
|
14 | throw new IllegalArgumentException("item == null");↵ | | 12 | ) throw new IllegalArgumentException("modelPartial == null");↵
|
15 | ↵ | | 13 | ↵
|
16 | list.remove(item);↵ | | 14 | list.remove(↵
|
17 | }↵ | | |
|
|
18 | /* (non-Javadoc)↵ | | |
|
19 | * @see org.columba.addressbook.facade.IGroupItem#getContactCount()↵ | | |
|
20 | */↵ | | 15 | modelPartial);↵
|
| | | 16 | }↵
|
|
21 | public int getContactCount() {↵ | | 17 | public int getContactCount() {↵
|
22 | return list.size();↵ | | 18 | return list.size();↵
|
23 | } | | 19 | }
|