package net.pterodactylus.sone.core;
-import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
.getValue(defaultValue);
}
- public Collection<Post> parsePosts(PostBuilderFactory postBuilderFactory)
+ public Set<Post> parsePosts(PostBuilderFactory postBuilderFactory)
throws InvalidPostFound {
Set<Post> posts = new HashSet<Post>();
while (true) {
return (postRecipientId != null) && (postRecipientId.length() == 43);
}
- public Collection<PostReply> parsePostReplies(
+ public Set<PostReply> parsePostReplies(
PostReplyBuilderFactory postReplyBuilderFactory) {
Set<PostReply> replies = new HashSet<PostReply>();
while (true) {