Friday, July 30, 2010

New Collection APIs in Java-6!!

New interfaces:
  • Deque
  • BlockingDeque
  • NavigableSet  
  • NavigableMap
 New Classes
  • ArrayDeque
  • LinkedBlockingDeque
  • ConcurrentSkipListSet
  • ConcurrentSkipListMap
  • AbstractMap.SimpleEntry
  • AbstractMap.SimpleImmutableEntry
Updated classes of java 6
  • LinkedList
  • TreeSet  
  • TreeMap
  • Collections
Classes are modified to implement the new interfaces in the existing classes.LinkedList is modified to implement Deque. TreeSet is modified to implement NavigableSet.TreeMap is modified to implement NavigableMap.In Collections 2 new methods newSetFromMap and asLifoQueue are added.

No comments:

Post a Comment