- 博客(2)
- 收藏
- 关注
原创 LeakCanary
自动安装直接添加debug依赖debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0'自动安装的原理ContentProvider/** * Content providers are loaded before the application class is created. [AppWatcherInstaller] is * used to install [leakcanary.AppWatche
2021-06-22 18:23:29
88
原创 ArrayList的扩容
一、内部属性1.缓存数组快速访问、尾部增删方便。中间位置增、删,都需要通过arraycopy,性能很差 // The array buffer into which the elements of the ArrayList are stored transient Object[] elementData; 2.默认属性 /** * Default initial capacity. */ private static final int DEFA
2021-05-30 17:28:40
51
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人