Thread View: be.comp.programming
2 messages
2 total messages
Started by Christof Laeremans
Thu, 31 Oct 2002 15:06
TreeMap in Java
Author: Christof Laeremans
Date: Thu, 31 Oct 2002 15:06
Date: Thu, 31 Oct 2002 15:06
8 lines
1256 bytes
1256 bytes
Hallo, Hoe werkt een TreeMap in Java juist ? Gaat deze de toegevoegde waarden automatisch sorteren of niet ? Mvg, Christof Laeremans
Re: TreeMap in Java
Author: Franky Braem
Date: Sat, 02 Nov 2002 17:37
Date: Sat, 02 Nov 2002 17:37
23 lines
1788 bytes
1788 bytes
In de JavaDoc van TreeMap kan je het volgende lezen: Red-Black tree based implementation of the SortedMap interface. This class guarantees that the map will be in ascending key order, sorted according to the natural order for the key's class (see Comparable), or by the comparator provided at creation time, depending on which constructor is used. De map is dus gesorteerd in stijgende volgorde van uw keys. Je kan deze sortering be�nvloeden door zelf een comparator te maken. Franky. "Christof Laeremans" <christof_laeremans@hotmail.com> wrote in message news:B9E70568.B730%christof_laeremans@hotmail.com... > Hallo, > > Hoe werkt een TreeMap in Java juist ? Gaat deze de toegevoegde waarden > automatisch sorteren of niet ? > > Mvg, > > Christof Laeremans >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads