From 9a8eee391957492603bf031829e5b323c6d6c62e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 3 Feb 2024 18:30:07 +0700 Subject: [PATCH] Use arraylist --- .../ru/dbotthepony/kommons/event/IBooleanSubscriptable.kt | 2 +- .../kotlin/ru/dbotthepony/kommons/event/IDoubleSubcripable.kt | 2 +- .../kotlin/ru/dbotthepony/kommons/event/IFloatSubcripable.kt | 2 +- src/main/kotlin/ru/dbotthepony/kommons/event/IIntSubcripable.kt | 2 +- .../kotlin/ru/dbotthepony/kommons/event/ILongSubcripable.kt | 2 +- src/main/kotlin/ru/dbotthepony/kommons/event/ISubscriptable.kt | 2 +- .../kotlin/ru/dbotthepony/kommons/event/IUnitSubscripable.kt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/IBooleanSubscriptable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/IBooleanSubscriptable.kt index dc817fb..8607edc 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/IBooleanSubscriptable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/IBooleanSubscriptable.kt @@ -27,7 +27,7 @@ interface IBooleanSubscriptable : ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: BooleanConsumer): ISubscriptable.L { diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/IDoubleSubcripable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/IDoubleSubcripable.kt index 15c0a46..b065bd6 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/IDoubleSubcripable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/IDoubleSubcripable.kt @@ -27,7 +27,7 @@ interface IDoubleSubcripable : ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: DoubleConsumer): ISubscriptable.L { diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/IFloatSubcripable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/IFloatSubcripable.kt index 8933745..b685614 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/IFloatSubcripable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/IFloatSubcripable.kt @@ -27,7 +27,7 @@ interface IFloatSubcripable : ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: FloatConsumer): ISubscriptable.L { diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/IIntSubcripable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/IIntSubcripable.kt index 5d39b02..234d3be 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/IIntSubcripable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/IIntSubcripable.kt @@ -27,7 +27,7 @@ interface IIntSubcripable : ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: IntConsumer): ISubscriptable.L { diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/ILongSubcripable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/ILongSubcripable.kt index 7684670..c3693d1 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/ILongSubcripable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/ILongSubcripable.kt @@ -27,7 +27,7 @@ interface ILongSubcripable : ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: LongConsumer): ISubscriptable.L { diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/ISubscriptable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/ISubscriptable.kt index d188f14..cbb4e14 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/ISubscriptable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/ISubscriptable.kt @@ -31,7 +31,7 @@ interface ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: Consumer): ISubscriptable.L { diff --git a/src/main/kotlin/ru/dbotthepony/kommons/event/IUnitSubscripable.kt b/src/main/kotlin/ru/dbotthepony/kommons/event/IUnitSubscripable.kt index 05d6304..82ac6ab 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/event/IUnitSubscripable.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/event/IUnitSubscripable.kt @@ -25,7 +25,7 @@ interface IUnitSubscripable : ISubscriptable { } } - private val subscribers = LinkedHashSet(0) + private val subscribers = ArrayList(0) private val queue = ArrayList(0) override fun addListener(listener: Runnable): ISubscriptable.L {