• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between sortedmap and treemap

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference betwen these two interfaces ?

is it the same as sortedet and treeset ?

both seem to sort in order ? is it the key /value issue ?

cheers

chris
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks to me that TreeMap is an implementation of the interface SortedMap. (As TreeSet is an implementation of SortedSet). So a comparison seems to be meaningless.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic