1 | Iterator getPhoneIterator() {↵ | | 1 | Iterator getEmailIterator() {↵
|
2 | return phoneVector.iterator();↵ | | 2 | return emailAddressVector.iterator();↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void addPhone(PhoneModel phoneModel) {↵ | | 4 | public void add↵
|
5 | if (phoneModel↵ | | 5 | Email(IEmailModel emailAddress) {↵
|
6 | == null)↵ | | 6 | if (emailAddress == null)↵
|
7 | throw new IllegalArgumentException("phoneModel == null");↵ | | 7 | throw new IllegalArgumentException("emailModel == null");↵
|
|
8 | phoneVector.add(phoneModel);↵ | | 8 | emailAddressVector.add(emailAddress);↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public Iterator getInstantMessagingIterator() {↵ | | 10 | // public ↵
|
11 | return instantMessagingVector.iterator();↵ | | |
|
12 | }↵ | | |
|
|
13 | public void addInstantMessaging(InstantMessagingModel instantMessagingModel) {↵ | | |
|
14 | if (instantMessaging↵ | | 11 | String getAgent() {↵
|
| | | 12 | // return agent;↵
|
| | | 13 | // }↵
|
|
| | | 14 | public Date getBirthday() {↵
|
| | | 15 | return birthday;↵
|
| | | 16 | }↵
|
|
| | | 17 | public String getSortString() {↵
|
| | | 18 | return sortString;↵
|
| | | 19 | }↵
|
|
| | | 20 | public ImageIcon getPhoto() {↵
|
| | | 21 | return photo;↵
|
| | | 22 | }↵
|
|
| | | 23 | /**↵
|
| | | 24 | * @param birthday↵
|
| | | 25 | * The birthday to set.↵
|
| | | 26 | */↵
|
| | | 27 | public void setBirthday(Date birthday) {↵
|
| | | 28 | this.birthday = birthday;↵
|
| | | 29 | }↵
|
|
| | | 30 | /**↵
|
| | | 31 | * @param photo↵
|
| | | 32 | * The photo to set.↵
|
| | | 33 | */↵
|
| | | 34 | public void setPhoto(ImageIcon photo) {↵
|
| | | 35 | this.photo = photo;↵
|
| | | 36 | }↵
|
|
| | | 37 | /**↵
|
| | | 38 | * @param sortString↵
|
| | | 39 | * The sortString to set.↵
|
| | | 40 | */↵
|
| | | 41 | public void setSortString(String sortString) {↵
|
| | | 42 | this.sortString = sortString;↵
|
| | | 43 | }↵
|
|
| | | 44 | public Iterator getPhoneIterator() {↵
|
| | | 45 | return phoneVector.iterator();↵
|
| | | 46 | }↵
|
|
| | | 47 | public void addPhone(PhoneModel phoneModel) {↵
|
15 | Model == null)↵ | | 48 | if (phoneModel == null)↵
|
16 | throw new IllegalArgumentException("instantMessaging == null");↵ | | 49 | throw new IllegalArgumentException("↵
|
|
17 | instantMessagingVector.add(instantMessaging↵ | | 50 | phoneModel == null");↵
|
|
18 | Model);↵ | | 51 | phoneVector.add(phoneModel);↵
|
19 | } | | 52 | }
|