Re: The Set Class in C++ and Java



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
.



Relevant Pages

  • Re: The Set Class in C++ and Java
    ... i really hope that Microsoft comes out with a Set ... The Java Set Interface is not strongly-typed either. ... Perhaps, considering your desire for strong typing, you might want ... I'm familiar with the Set Class in C++ and Java; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: The Set Class in C++ and Java
    ... Kevin Spencer wrote: ... i really hope that Microsoft comes out with a Set ... The Java Set Interface is not strongly-typed either. ... Perhaps, considering your desire for strong typing, you might want ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: The Set Class in C++ and Java
    ... Kevin Spencer wrote: ... i really hope that Microsoft comes out with a Set ... The Java Set Interface is not strongly-typed either. ... Perhaps, considering your desire for strong typing, you might want ...
    (microsoft.public.dotnet.languages.csharp)

Loading