Android中推薦用SparseArray替換HashMap

本文借鑑自文章Android中你還在用HashMap<Integer,Object>嗎?java 在Android Studio中輸入如下代碼:web Map<Integer,Object> map = new HashMap<>(); 系統會提示:算法 Use new SparseArray<Object>(...) instead for better performance數組 推薦咱們使用
相關文章
相關標籤/搜索