• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

help understanding directory info in java docs

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I look at the doc for something like Integer, at the top of the page I see ...

java.lang.Object
+--java.lang.Number
+--java.lang.Integer

What is the "+--" telling me?

Also I think the three statements are telling me that Integer extends Number which extends Object - is that correct?

Alternatively, the doc for HashMap shows ...

java.lang.Object
java.util.AbstractMap
java.util.HashMap

with the little angle doo-hickey in front of lines 2 and 3. What's the little angle doo-hickey telling me?

Thanks!
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


What is the "+--" telling me?

Also I think the three statements are telling me that Integer extends Number which extends Object - is that correct?


Yes. That is correct.

Alternatively, the doc for HashMap shows ...



What's the little angle doo-hickey telling me?

Same idea ... that HashMap extends AbstractMap and that AbstractMap extends Object.
 
Daniel Loranz
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any significance between the "+--" symbol vs the the little L bracket?

Thanks.
 
Marilyn de Queiroz
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadoc for both classes looks the same to me ... I'm not sure why you're seeing pluses for one and something else for the other.
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite 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
    Bookmark Topic Watch Topic
  • New Topic