• Post Reply Bookmark Topic Watch Topic
  • New Topic

navigableSubMap, navigableHeadMap and navigableTailMap - where are they?  RSS feed

 
Vijay Raj
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was going through the Java 6 Platform Revealed book. It mentions about the new NavigableMap interface. In there, it has mentioned about three methods - navigableSubMap, navigableHeadMap and
navigableTailMap. But I am not able to find it in the Java API documentation (http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentNavigableMap.html). I even searched the index but could not find these methods? Where have they gone?

I was able to find them in here - http://oss.org.cn/ossdocs/java/se/jdk6/docs/api/java/util/concurrent/ConcurrentNavigableMap.html

Regards,
Vijay.
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Vijay
The site where you find above methods is old one see the copyright information and year it's 2005
and whatever you find initially is from sun but new one it's copyright year is 2009
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The methods were removed from the API prior to JDK 6's official release because they were utterly pointless. The methods headMap(), subMap() and tailMap() do the same thing, with less typing. The book Java 6 Platform Revealed was based on a pre-release version of JDK 6 which is out fo date as far as this API is concerned.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!