Fixes some imports for benchmarks

This commit is contained in:
Vitor Pamplona
2024-03-16 11:08:31 -04:00
parent 688abee205
commit 8c43f3492b
2 changed files with 56 additions and 56 deletions
@@ -62,6 +62,12 @@ class LargeCache<K, V> {
return runner.results
}
fun <R> map(consumer: BiNotNullMapper<K, V, R>): List<R> {
val runner = BiNotNullMapCollector(consumer)
innerForEach(runner)
return runner.results
}
fun <R> mapNotNull(consumer: BiMapper<K, V, R?>): List<R> {
val runner = BiMapCollector(consumer)
innerForEach(runner)
@@ -86,12 +92,6 @@ class LargeCache<K, V> {
return runner.results
}
fun <R> map(consumer: BiNotNullMapper<K, V, R>): List<R> {
val runner = BiNotNullMapCollector(consumer)
innerForEach(runner)
return runner.results
}
fun sumOf(consumer: BiSumOf<K, V>): Int {
val runner = BiSumOfCollector(consumer)
innerForEach(runner)