Lint rule to replace Kotlin's defaults MutableMap
and MutableSet
implementations by the lightweight ArrayMap and ArraySet implementations. This library works with Android Studio to create an inspection directly into the editor and will suggest you to replace while you you are writting your code.
lintChecks 'com.vincentmasselis.arraymaparrayset:arraymaparrayset-lint:1.0.0'
implementation 'com.vincentmasselis.arraymaparrayset:arraymaparrayset-extensions:1.0.0'
There is a video from Android Developpers explains why and when you should use ArrayMap
: