COLLECTION FRAMEWORKS IN JAVA

  • Collection interfaces — These interfaces represent different types of collections, such as Set, List, and Map. These interfaces form the basis of the framework.
  • General-purpose implementations — These are primary implementations of the collection interfaces such as ArrayList, LinkedList, HashSet, LinkedHashSet, HashMap, etc.
  • Legacy implementations — The collection classes from earlier releases, Vector and Hashtable, were retrofitted to implement the collection interfaces.
  • Special-purpose implementations — Implementations designed for use in special situations such as CopyOnWriteArrayList, CopyOnWriteArraySet, EnumSet, EnumMap, WeakHashMap and IdentityHashMap etc.
  • Concurrent implementations — These implementations designed for highly concurrent use such as ConcurrentSkipListSet, ConcurrentHashMap, ConcurrentSkipListMap etc.
  • Wrapper implementations — Add functionality, such as synchronization, to other implementations.
  • Convenience implementations — High-performance “mini-implementations” of the collection interfaces.
  • Abstract implementations — Partial implementations of the collection interfaces to facilitate custom implementations such as AbstractCollection, AbstractSet, AbstractList, AbstractSequentialList and AbstractMap.
  • Algorithms — Static methods that perform useful functions on collections, such as sorting a list.
  • Infrastructure — Interfaces that provide essential support for the collection interfaces.
  • Array Utilities — Utility functions for arrays of primitive types and reference objects. Not, strictly speaking, a part of the collections framework, this feature was added to the Java platform at the same time as the collections framework and relies on some of the same infrastructures.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store