What purpose do the collection classes defined under com.google.gwt.dev.util.collect.* serve?
Asked Answered
L

1

8

I accidentally used HashSet and HashMap defined under the package com.google.gwt.dev.util.collect in the client side code. Found out the package does not have a module xml file and hence these collection classes are not meant to be used on the client side.

What is the purpose of having these classes in the GWT SDK, if these aren't supposed to be used within the client package? There definitely has to be some benefit from these classes to merit inclusion in the SDK.

What am I missing?

Latialatices answered 24/6, 2010 at 15:57 Comment(1)
Used by internally by other classes that are included?Jamnis
M
9

Those collection implementations were written by Google engineers to improve the performance (specifically memory usage) of the GWT internals, such as the Java-to-JavaScript compiler. They are implementation details not intended to be part of the public API and should not be used by GWT developers.

Morita answered 24/6, 2010 at 17:7 Comment(2)
@DrDro: I'm part of the GWT Contributors Google Group and I saw posts when the collections were added. The information is in the group history somewhere, but I can't point you to a specific thread. groups.google.com/group/google-web-toolkit-contributorsMorita
AFAICT, those classes are re-packaged Guava (former Google Collections) collections.Hydromedusa

© 2022 - 2024 — McMap. All rights reserved.