Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

navigableSubMap, navigableHeadMap and navigableTailMap - where are they?

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 814
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 4062
56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic