Bring back type specific set
This commit is contained in:
parent
7a0360b02f
commit
37c7bc3c77
@ -1,5 +1,6 @@
|
|||||||
package ru.dbotthepony.kommons.math
|
package ru.dbotthepony.kommons.math
|
||||||
|
|
||||||
|
import it.unimi.dsi.fastutil.chars.CharAVLTreeSet
|
||||||
import ru.dbotthepony.kommons.util.IStruct4f
|
import ru.dbotthepony.kommons.util.IStruct4f
|
||||||
import kotlin.math.roundToInt
|
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)
|
return RGBAColor(r, g, b, a)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val hexChars = HashSet<Char>()
|
private val hexChars = CharAVLTreeSet()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
"#0123456789abcdefABCDEF".forEach { hexChars.add(it) }
|
"#0123456789abcdefABCDEF".forEach { hexChars.add(it) }
|
||||||
|
Loading…
Reference in New Issue
Block a user