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