Community
Participate
Working Groups
List<CommentGroup> commentGroups = new ArrayList<CommentGroup>();
List<TaskAttribute> comments = new ArrayList<TaskAttribute>();
int recentFromIndex = 0, currentFromIndex = 0;
int recentFromIndex = -1, currentFromIndex = -1;
String currentPersonId = taskDataModel.getTaskRepository().getUserName();
// current
}
// group by last author
if (currentFromIndex < comments.size()) {
if (currentFromIndex != -1 && currentFromIndex < comments.size()) {
current.addAll(0, new ArrayList<TaskAttribute>(comments.subList(currentFromIndex, comments.size())));
if (current.size() > 0) {
comments.removeAll(current);