From 3ebdac823fdb5dcbbbf80b36c9370878a1cbb1d2 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 19 Jan 2023 15:45:18 +0100 Subject: Make use of new collections api in collectionspage --- .../notenoughupdates/util/hypixelapi/Collection.kt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt index 2f2419eb..b2c7fcec 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt @@ -23,8 +23,21 @@ import com.google.gson.JsonArray import com.google.gson.JsonObject import io.github.moulberry.notenoughupdates.NotEnoughUpdates import java.math.BigInteger -import java.util.* import java.util.concurrent.CompletableFuture +import kotlin.collections.List +import kotlin.collections.Map +import kotlin.collections.component1 +import kotlin.collections.component2 +import kotlin.collections.filter +import kotlin.collections.flatMap +import kotlin.collections.groupBy +import kotlin.collections.mapNotNull +import kotlin.collections.mapValues +import kotlin.collections.maxOf +import kotlin.collections.sumOf +import kotlin.collections.toList +import kotlin.collections.toMap +import kotlin.collections.toSet data class ProfileCollectionInfo( val collections: Map, -- cgit