X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FSoneBuilder.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FSoneBuilder.java;h=2aca8b95f09fa02459fa2430d1d85dc1b29ad7ae;hp=0000000000000000000000000000000000000000;hb=34a6a72ca76ae5e8ea3d02160b4163baa9912ceb;hpb=28b2e2b0d2ff2320f5b6a5ac36a858a604c7c7ba
diff --git a/src/main/java/net/pterodactylus/sone/database/SoneBuilder.java b/src/main/java/net/pterodactylus/sone/database/SoneBuilder.java
new file mode 100644
index 0000000..2aca8b9
--- /dev/null
+++ b/src/main/java/net/pterodactylus/sone/database/SoneBuilder.java
@@ -0,0 +1,35 @@
+/*
+ * Sone - SoneBuilder.java - Copyright © 2013 David Roden
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package net.pterodactylus.sone.database;
+
+import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.freenet.wot.Identity;
+
+/**
+ * Builder for {@link Sone} objects.
+ *
+ * @author David âBombeâ Roden
+ */
+public interface SoneBuilder {
+
+ SoneBuilder by(Identity identity);
+ SoneBuilder local();
+
+ Sone build() throws IllegalStateException;
+
+}