package net.pterodactylus.sone.data;
+import java.util.Collections;
import java.util.Comparator;
import java.util.List;
+import com.google.common.base.Function;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
};
+ public static final Function<Post, List<PostReply>> TO_REPLIES = new Function<Post, List<PostReply>>() {
+ @Override
+ public List<PostReply> apply(Post post) {
+ return (post == null) ? Collections.<PostReply>emptyList() : post.getReplies();
+ }
+ };
+
//
// ACCESSORS
//