From: David ‘Bombe’ Roden Date: Sun, 15 Oct 2017 10:50:19 +0000 (+0200) Subject: Replace Sone builder interface with Kotlin version X-Git-Tag: 0.9.8^2~23 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=873529565320cc79854478a2d52f9d0e03a1a36c;p=Sone.git Replace Sone builder interface with Kotlin version --- 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 + +}