Example #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;
  }
Example #2
0
 @Transient
 public boolean hasPages() {
   return pages.size() > 0;
 }
Example #3
0
 public int numLikes() {
   return thoseWhoLike.size();
 }
Example #4
0
 @Transient
 public int getNextPageNumber() {
   return pages.size() + 1;
 }