Stay organized with collections
Save and categorize content based on your preferences.
android.support.v4.util
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
Interfaces
Pools.Pool <T>
Interface for managing a pool of objects.
Classes
ArrayMap <K, V>
ArrayMap is a generic key->value mapping data structure that is
designed to be more memory efficient than a traditional HashMap
,
this implementation is a version of the platform's
android.util.ArrayMap
that can be used on older versions of the platform.
ArraySet <E>
ArraySet is a generic set data structure that is designed to be more memory efficient than a
traditional HashSet
.
AtomicFile
Static library support version of the framework's AtomicFile
,
a helper class for performing atomic operations on a file by creating a
backup file until a write has successfully completed.
CircularArray <E>
CircularArray is a generic circular array data structure that provides O(1) random read, O(1)
prepend and O(1) append.
CircularIntArray
CircularIntArray is a circular integer array data structure that provides O(1) random read, O(1)
prepend and O(1) append.
LongSparseArray <E>
SparseArray mapping longs to Objects, a version of the platform's
android.util.LongSparseArray
that can be used on older versions of the
platform.
LruCache <K, V>
Static library version of android.util.LruCache
.
ObjectsCompat
This class consists of static utility methods for operating on objects.
Pair <F, S>
Container to ease passing around a tuple of two objects.
PatternsCompat
Commonly used regular expression patterns.
Pools
Helper class for creating pools of objects.
Pools.SimplePool <T>
Simple (non-synchronized) pool of objects.
Pools.SynchronizedPool <T>
Synchronized) pool of objects.
SimpleArrayMap <K, V>
Base implementation of ArrayMap
that doesn't include any standard Java
container API interoperability.
SparseArrayCompat <E>
SparseArrays map integers to Objects.
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,[]]