1 package net.pterodactylus.sone.database;
3 import java.util.Collection;
5 import net.pterodactylus.sone.data.Client;
6 import net.pterodactylus.sone.data.Post;
7 import net.pterodactylus.sone.data.PostReply;
8 import net.pterodactylus.sone.data.Sone;
9 import net.pterodactylus.sone.freenet.wot.Identity;
12 * Builder for {@link Sone} objects.
14 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
16 public interface SoneBuilder {
18 SoneBuilder from(Identity identity);
21 SoneBuilder lastUpdated(long lastUpdated);
22 SoneBuilder using(Client client);
24 SoneBuilder withPosts(Collection<Post> posts);
25 SoneBuilder withPostReplies(Collection<PostReply> postReplies);
27 Sone build() throws IllegalStateException;