Skip to content

androidx.collection:collection

Official Description: Standalone efficient collections.

CommonsWare's Notes

This artifact contains library implementations of a series of collection classes that are also in the framework, such as LruCache and ArrayMap. For those, use the library if:

  • Your minSdkVersion is older than when the framework added the class of interest, or

  • You want to ensure that you are not using some framework class that has bugs

This artifact also has a few classes that are not in the framework, such as CircularArray and CircularIntArray. If those classes are of interest to you, you will need this artifact. Note that depending on your other dependencies, you might get this one "for free" without Gradle modifications.

Documentation

Versions