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