import net.pterodactylus.util.template.Filter;
import net.pterodactylus.util.template.TemplateContext;
import net.pterodactylus.util.template.Filter;
import net.pterodactylus.util.template.TemplateContext;
/**
* {@link Filter} implementation that groups replies by the post the are in
* reply to, returning a map with the post as key and the list of replies as
/**
* {@link Filter} implementation that groups replies by the post the are in
* reply to, returning a map with the post as key and the list of replies as
* All replies from a new-reply notification have posts,
* ListNotificationFilters takes care of that.
*/
* All replies from a new-reply notification have posts,
* ListNotificationFilters takes care of that.
*/
}
replies.add(reply);
}
Map<Post, Map<String, Set<?>>> result = new HashMap<>();
for (Entry<Post, Set<Sone>> postEntry : postSones.entrySet()) {
}
replies.add(reply);
}
Map<Post, Map<String, Set<?>>> result = new HashMap<>();
for (Entry<Post, Set<Sone>> postEntry : postSones.entrySet()) {
Map<String, Set<?>> postResult = new HashMap<>();
postResult.put("sones", postEntry.getValue());
postResult.put("replies", postReplies.get(postEntry.getKey()));
Map<String, Set<?>> postResult = new HashMap<>();
postResult.put("sones", postEntry.getValue());
postResult.put("replies", postReplies.get(postEntry.getKey()));