Replace Sone builder interface with Kotlin version
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Oct 2017 10:50:19 +0000 (12:50 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Oct 2017 10:50:19 +0000 (12:50 +0200)
src/main/java/net/pterodactylus/sone/database/SoneBuilder.java [deleted file]
src/main/kotlin/net/pterodactylus/sone/database/SoneBuilder.kt [new file with mode: 0644]

diff --git a/src/main/java/net/pterodactylus/sone/database/SoneBuilder.java b/src/main/java/net/pterodactylus/sone/database/SoneBuilder.java
deleted file mode 100644 (file)
index d2047af..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-package net.pterodactylus.sone.database;
-
-import net.pterodactylus.sone.data.Sone;
-import net.pterodactylus.sone.freenet.wot.Identity;
-
-/**
- * Builder for {@link Sone} objects.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
- */
-public interface SoneBuilder {
-
-       SoneBuilder from(Identity identity);
-       SoneBuilder local();
-
-       Sone build() throws IllegalStateException;
-
-}
diff --git a/src/main/kotlin/net/pterodactylus/sone/database/SoneBuilder.kt b/src/main/kotlin/net/pterodactylus/sone/database/SoneBuilder.kt
new file mode 100644 (file)
index 0000000..35c444c
--- /dev/null
@@ -0,0 +1,16 @@
+package net.pterodactylus.sone.database
+
+import net.pterodactylus.sone.data.Sone
+import net.pterodactylus.sone.freenet.wot.Identity
+
+/**
+ * Builder for [Sone] objects.
+ */
+interface SoneBuilder {
+
+       fun from(identity: Identity): SoneBuilder
+       fun local(): SoneBuilder
+
+       fun build(): Sone
+
+}