Use arraylist

This commit is contained in:
DBotThePony 2024-02-03 18:30:07 +07:00
parent 40459a7e99
commit 9a8eee3919
Signed by: DBot
GPG Key ID: DCC23B5715498507
7 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ interface IBooleanSubscriptable : ISubscriptable<Boolean> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: BooleanConsumer): ISubscriptable.L {

View File

@ -27,7 +27,7 @@ interface IDoubleSubcripable : ISubscriptable<Double> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: DoubleConsumer): ISubscriptable.L {

View File

@ -27,7 +27,7 @@ interface IFloatSubcripable : ISubscriptable<Float> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: FloatConsumer): ISubscriptable.L {

View File

@ -27,7 +27,7 @@ interface IIntSubcripable : ISubscriptable<Int> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: IntConsumer): ISubscriptable.L {

View File

@ -27,7 +27,7 @@ interface ILongSubcripable : ISubscriptable<Long> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: LongConsumer): ISubscriptable.L {

View File

@ -31,7 +31,7 @@ interface ISubscriptable<V> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: Consumer<V>): ISubscriptable.L {

View File

@ -25,7 +25,7 @@ interface IUnitSubscripable : ISubscriptable<Unit> {
}
}
private val subscribers = LinkedHashSet<L>(0)
private val subscribers = ArrayList<L>(0)
private val queue = ArrayList<L>(0)
override fun addListener(listener: Runnable): ISubscriptable.L {