java容器类总结——基于JDK1.8

java容器类总结——基于JDK1.8

虚线为接口或抽象类,黑框为常用类,实箭头标识持有,空箭头标识继承或实现。

Interface Collection<E>

public interface Deque<E> extends Queue<E>

ArrayDeque, ConcurrentLinkedDeque, LinkedBlockingDeque, LinkedList

Interface Iterator<E>

Scanner

Interface List<E>

ArrayList, LinkedList, Stack, Vector

一个有序集合,C++的list是无序的。

public interface ListIterator<E> extends Iterator<E>

一个列表的迭代器,允许程序员在两个方向遍历列表,在迭代过程中修改列表,并获得在列表中的迭代器的当前位置。

Interface Map<K,V>

ConcurrentHashMap,HashMap, Hashtable, LinkedHashMap, TreeMap

Interface Queue<E>

ArrayDeque, ConcurrentLinkedDeque, ConcurrentLinkedQueue, LinkedBlockingDeque, LinkedBlockingQueue, LinkedList, PriorityBlockingQueue, PriorityQueue

Interface Set<E>

ConcurrentHashMap.KeySetView,HashSet,LinkedHashSet, TreeSet

Interface SortedMap<K,V>

ConcurrentSkipListMap, TreeMap

Interface SortedSet<E>

ConcurrentSkipListSet, TreeSet

Class ArrayDeque<E>

Class ArrayList<E>

Class Arrays

Class Collections

Class HashMap<K,V>

Class HashSet<E>

Class Hashtable<K,V>

Class LinkedHashMap<K,V>

Class LinkedHashSet<E>

Class LinkedList<E>

Class PriorityQueue<E>

Class Stack<E>

Class TreeMap<K,V>

Class TreeSet<E>

Class Vector<E>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 概述 Java集合框架由Java类库的一系列接口、抽象类以及具体实现类组成。我们这里所说的集合就是把一组对象组织到...
    absfree阅读 1,312评论 0 10
  • Java集合框架 Java中封装了许多常用的数据结构,称为集合框架,可以有效组织数据,提高程序性能。最初Java只...
    Steven1997阅读 1,002评论 0 2
  • 一、基本数据类型 注释 单行注释:// 区域注释:/* */ 文档注释:/** */ 数值 对于byte类型而言...
    龙猫小爷阅读 4,307评论 0 16
  • Java集合类可用于存储数量不等的对象,并可以实现常用的数据结构如栈,队列等,Java集合还可以用于保存具有映射关...
    小徐andorid阅读 1,998评论 0 13
  • 1、挡校门事件 挡校门事件(Stand in the Schoolhouse Door)发生于1963年6月11日...
    wublub阅读 314评论 0 0