Replace InsertionDelayChangedEvent with Kotlin version
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Oct 2018 19:58:31 +0000 (21:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Oct 2018 19:58:31 +0000 (21:58 +0200)
src/main/java/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.java [deleted file]
src/main/kotlin/net/pterodactylus/sone/core/event/InsertionDelayChangedEvent.kt [new file with mode: 0644]

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 (file)
index 747093c..0000000
+++ /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 (file)
index 0000000..b2909f2
--- /dev/null
@@ -0,0 +1,3 @@
+package net.pterodactylus.sone.core.event
+
+data class InsertionDelayChangedEvent(val insertionDelay: Int)