From 37c7bc3c77d37e416e6351295ac913a99d64af12 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 25 Feb 2024 16:50:52 +0700 Subject: [PATCH] Bring back type specific set --- src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt b/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt index e61fc91..ea50bf8 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/math/RGBAColor.kt @@ -1,5 +1,6 @@ package ru.dbotthepony.kommons.math +import it.unimi.dsi.fastutil.chars.CharAVLTreeSet import ru.dbotthepony.kommons.util.IStruct4f import kotlin.math.roundToInt @@ -247,7 +248,7 @@ class RGBAColor(red: Float, green: Float, blue: Float, alpha: Float = 1f) : IStr return RGBAColor(r, g, b, a) } - private val hexChars = HashSet() + private val hexChars = CharAVLTreeSet() init { "#0123456789abcdefABCDEF".forEach { hexChars.add(it) }