From a97bd2a5a5d804d53f9fdf4ff3afa985b6eae2fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 25 Oct 2018 21:58:31 +0200 Subject: [PATCH] Replace InsertionDelayChangedEvent with Kotlin version --- .../sone/core/event/InsertionDelayChangedEvent.java | 21 --------------------- .../sone/core/event/InsertionDelayChangedEvent.kt | 3 +++ 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java create mode 100644 src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt diff --git a/src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java b/src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java deleted file mode 100644 index 747093c..0000000 --- a/src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java +++ /dev/null @@ -1,21 +0,0 @@ -package net.pterodactylus.sone.core.event; - -import com.google.common.eventbus.EventBus; - -/** - * Notifies interested {@link EventBus} clients that the Sone insertion delay - * has changed. - */ -public class InsertionDelayChangedEvent { - - private final int insertionDelay; - - public InsertionDelayChangedEvent(int insertionDelay) { - this.insertionDelay = insertionDelay; - } - - public int getInsertionDelay() { - return insertionDelay; - } - -} diff --git a/src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt b/src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt new file mode 100644 index 0000000..b2909f2 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt @@ -0,0 +1,3 @@ +package net.pterodactylus.sone.core.event + +data class InsertionDelayChangedEvent(val insertionDelay: Int) -- 2.7.4