Пример #1
0
 @NotNull
 private ArrayListUserEmail buildEmails(@NotNull List<ContactRecord> records) {
   ArrayListUserEmail res = new ArrayListUserEmail();
   for (ContactRecord r : records) {
     if (r.getRecordType() == ContactRecordType.EMAIL) {
       res.add(new UserEmail(r.getRecordData(), r.getRecordTitle()));
     }
   }
   return res;
 }
Пример #2
0
 @NotNull
 private ArrayListUserLink buildLinks(@NotNull List<ContactRecord> records) {
   ArrayListUserLink res = new ArrayListUserLink();
   for (ContactRecord r : records) {
     if (r.getRecordType() == ContactRecordType.WEB) {
       res.add(new UserLink(r.getRecordData(), r.getRecordTitle()));
     }
   }
   return res;
 }
Пример #3
0
 @NotNull
 private ArrayListUserPhone buildPhones(@NotNull List<ContactRecord> records) {
   ArrayListUserPhone res = new ArrayListUserPhone();
   for (ContactRecord r : records) {
     if (r.getRecordType() == ContactRecordType.PHONE) {
       res.add(new UserPhone(Long.parseLong(r.getRecordData()), r.getRecordTitle()));
     }
   }
   return res;
 }