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