コード例 #1
0
 /** create a cache note from the UserData1 to UserData4 fields supported by GSAK */
 private void createNoteFromGSAKUserdata() {
   if (StringUtils.isBlank(cache.getPersonalNote())) {
     final StringBuilder buffer = new StringBuilder();
     for (final String anUserData : userData) {
       if (StringUtils.isNotBlank(anUserData)) {
         buffer.append(' ').append(anUserData);
       }
     }
     final String note = buffer.toString().trim();
     if (StringUtils.isNotBlank(note)) {
       cache.setPersonalNote(note);
     }
   }
 }
コード例 #2
0
 /** create a cache note from the UserData1 to UserData4 fields supported by GSAK */
 private void createNoteFromGSAKUserdata() {
   if (StringUtils.isBlank(cache.getPersonalNote())) {
     final StringBuilder buffer = new StringBuilder();
     for (int i = 0; i < userData.length; i++) {
       if (StringUtils.isNotBlank(userData[i])) {
         buffer.append(' ').append(userData[i]);
       }
     }
     final String note = buffer.toString().trim();
     if (StringUtils.isNotBlank(note)) {
       cache.setPersonalNote(note);
     }
   }
 }