ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / common / kotlin.collections.MutableMap

Extensions for kotlin.collections.MutableMap

Name Summary
computeIfAbsentAndGet Equivalent to computeIfAbsent, but also return the created or existing valuefun <K, V : Any> MutableMap<K, V>.computeIfAbsentAndGet(key: K, valueCreator: () -> V): V
putIfAbsentAndGet Return the NEW value if absent, or get the existing valuefun <K, V : Any> MutableMap<K, V>.putIfAbsentAndGet(key: K, value: V): V