[Home] [By Thread] [By Date] [Recent Entries]

  • From: Michael Brennan <Michael_Brennan@A...>
  • To: 'Jeff Rafter' <jeffrafter@e...>
  • Date: Mon, 29 Jan 2001 20:14:19 -0800

"Natural order" simply means the order indicated by the implementation of
the Comparable interface. For Strings, this is based on the Unicode
character values.

> -----Original Message-----
> From: Jeff Rafter [mailto:jeffrafter@e...]
> Sent: Sunday, January 28, 2001 11:21 PM
> To: Jonathan Borden
> Cc: xml-dev@l...
> Subject: Re: [RDDL] Java Object Model
> 
> 
> Potentially naive question:
> 
> Is the use of a SortedMap (TreeMap in general) simply for 
> listing the keys
> or is there an explicit reason this interface was chosen.  Reading the
> TreeMap JavaDoc it says that it sorts the keys in natural 
> order but can be
> modified with a comparator.   Is "natural order" the order by 
> which the
> items were read into the cahce?  Or are they typically going 
> to sorted with
> an order of importance-- one schema type before another?
> 
> I am looking to implement the API in another language and am trying to
> figure out what type of List I should return as I don't have 
> a SortedMap
> class.
> 
> Sorry if this message proves flammable... <grin/>
> 
> Thanks,
> Jeff Rafter
> Defined Systems
> 

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member