From 873529565320cc79854478a2d52f9d0e03a1a36c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 15 Oct 2017 12:50:19 +0200 Subject: [PATCH] Replace Sone builder interface with Kotlin version --- .../net/pterodactylus/sone/database/SoneBuilder.java | 18 ------------------ .../net/pterodactylus/sone/database/SoneBuilder.kt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 18 deletions(-) delete mode 100644 src/main/java/net/pterodactylus/sone/database/SoneBuilder.java create mode 100644 src/main/kotlin/net/pterodactylus/sone/database/SoneBuilder.kt 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 index d2047af..0000000 --- a/src/main/java/net/pterodactylus/sone/database/SoneBuilder.java +++ /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 David ‘Bombe’ Roden - */ -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 index 0000000..35c444c --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/database/SoneBuilder.kt @@ -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 + +} -- 2.7.4