Package tech.harmonysoft.oss.common.collection
See: Description
-
Object Summary Object Description CollectionInitializer Quite often many lambda objects are generated during frequent calls like getOrPut:
That way it's more effective pre-defining initializers and use them like below - by doing that we avoie unnecessary lambda objects construction:class MyClass { private val cache = mutableMapOf<String, Stack<MyData>>() fun service(key: String) { cache.getOrPut(key) { Stack<MyData>() } } }cache.getOrPut(key, CollectionInitializer.stack())CollectionUtil -
Class Summary Class Description ArrayData MapData LeafData CollectionUtilKt -
Interface Summary Interface Description Data