Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
流行的集合库中是否有任何包装器,它实现了包装器,List<E>以便可以使用List<E>和SortedMap<Integer,E>接口访问它?
List<E>
SortedMap<Integer,E>
目标是在插入操作时移动索引并在添加操作时自动生成
据我所知,两者都ArrayList提供LinkedList这些功能:附加(您在添加操作时自动生成的意思)显然是可能的,并且在您执行时会移动索引add(int index, E element)。
ArrayList
LinkedList
add(int index, E element)