diff options
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/utils')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/utils/ListenableArrayList.kt | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/ListenableArrayList.kt b/src/main/kotlin/cc/woverflow/chatting/utils/ListenableArrayList.kt deleted file mode 100644 index 0cd598c..0000000 --- a/src/main/kotlin/cc/woverflow/chatting/utils/ListenableArrayList.kt +++ /dev/null @@ -1,9 +0,0 @@ -package cc.woverflow.chatting.utils - -class ListenableArrayList<T>(private val runnable: (ListenableArrayList<T>) -> Unit, vararg elements: T): ArrayList<T>() { - override fun add(element: T): Boolean { - val value = super.add(element) - runnable.invoke(this) - return value - } -}
\ No newline at end of file |