| 接口 | 说明 |
|---|---|
| GetChars |
Please implement this interface if your CharSequence has a
getChars() method like the one in String that is faster than
calling charAt() multiple times.
|
| Log.IPrintlnLog |
提供给外部的实现
|
| TextUtils.StringSplitter |
An interface for splitting strings according to rules that are opaque to the user of this
interface.
|
| 类 | 说明 |
|---|---|
| ArrayMap<K,V> |
ArrayMap is a generic key->value mapping data structure that is
designed to be more memory efficient than a traditional
HashMap. |
| ArraySet<E> |
ArraySet is a generic set data structure that is designed to be more memory efficient than a
traditional
HashSet. |
| ArrayUtils |
ArrayUtils contains some methods that you can call to find out
the most efficient increments by which to grow arrays.
|
| EmptyArray |
保留了各种类型的空数组的引用,以避免申请多余的内存空间
|
| GrowingArrayUtils |
A helper class that aims to provide comparable growth performance to ArrayList, but on primitive
arrays.
|
| Log |
日志实现
|
| LongSparseArray<E> |
SparseIntArray 的内部是通过两个数组对数据进行存储的, key 为 long 数组, value 为 Object 数组
SparseArray mapping longs to Objects.
|
| LruCache<K,V> |
BEGIN LAYOUTLIB CHANGE
This is a custom version that doesn't use the non standard LinkedHashMap#eldest.
|
| Pair<F,S> |
Container to ease passing around a tuple of two objects.
|
| Patterns |
Commonly used regular expression patterns.
|
| SparseArray<E> |
SparseArray 的内部是通过两个数组对数据进行存储的, key 为 int 数组, value 为 Object 数组
- SparseArray 比 HashMap 更省内存,
- 在某些条件下性能更好,它避免了对 key 的自动装箱(int 转为 Integer 类型)
- 由于是整数key,所以添加删除可以使用二分查找
- ...
|
| SparseBooleanArray |
SparseBooleanArray 的内部是通过两个数组对数据进行存储的, key 为 int 数组, value 为 boolean 数组
SparseBooleanArrays map integers to booleans.
|
| SparseIntArray |
SparseIntArray 的内部是通过两个数组对数据进行存储的, key 为 int 数组, value 为 int 数组
SparseIntArrays map integers to integers.
|
| SparseLongArray |
SparseLongArray 的内部是通过两个数组对数据进行存储的, key 为 int 数组, value 为 long 数组
SparseLongArrays map integers to longs.
|
| TextUtils |
文本工具类
修改自
android.text.TextUtil |
| UtilConfig |
Class to configure several of the util classes.
|
| 枚举 | 说明 |
|---|---|
| TextUtils.TruncateAt |
| 注释类型 | 说明 |
|---|---|
| Log.LogLevelId |
日志级别的标识
|
Copyright © 2022. All rights reserved.