Esempio n. 1
0
  public Set<NotificationCom> notificationComs() {
    Set set = new LinkedHashSet();

    int[] masId = new int[notificationComs.size()];

    int i = 0;
    for (NotificationCom not : notificationComs) masId[i++] = not.getId();

    Arrays.sort(masId);

    for (int id : masId)
      for (NotificationCom not : notificationComs) if (not.getId() == id) set.add(not);

    return set;
  }
Esempio n. 2
0
 @Transient
 public boolean hasPages() {
   return pages.size() > 0;
 }
Esempio n. 3
0
 public int numLikes() {
   return thoseWhoLike.size();
 }
Esempio n. 4
0
 @Transient
 public int getNextPageNumber() {
   return pages.size() + 1;
 }