Re: The Set Class in C++ and Java
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Mon, 2 Oct 2006 07:33:12 +0100
Kevin Spencer <uce@xxxxxxx> wrote:
any way, i have checked the file; it doesn't first implement generics
and doesn't really consider strong typing.
Any way; i really hope that Microsoft comes out with a Set
implementation in their future releases.
As an alternative, i see the HashTable, but considering a constantly
sorted range complexity of the tree, a HashTable is not always the
better choice since the fast lookup is what makes it very powerful.
The Java Set Interface is not strongly-typed either. In fact, it can contain
any combination of data in it, not just one type. See
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Set.html.
Well, that was pre-generics in Java. Look at:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html
Just to clarify :)
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: The Set Class in C++ and Java
- From: Kevin Spencer
- Re: The Set Class in C++ and Java
- References:
- The Set Class in C++ and Java
- From: coosa
- Re: The Set Class in C++ and Java
- From: Kevin Spencer
- Re: The Set Class in C++ and Java
- From: coosa
- Re: The Set Class in C++ and Java
- From: Kevin Spencer
- Re: The Set Class in C++ and Java
- From: coosa
- Re: The Set Class in C++ and Java
- From: Kevin Spencer
- The Set Class in C++ and Java
- Prev by Date: Re: Typesafe Enum Pattern
- Next by Date: Re: Void/function on a class which is an array
- Previous by thread: Re: The Set Class in C++ and Java
- Next by thread: Re: The Set Class in C++ and Java
- Index(es):
Relevant Pages
|
Loading