GWT Collection: Hashtable Hashmap Vector etc.

A lot of classes are not supported in GWT; which results in errors such as:

No source code is available for type com.google.gwt.dev.util.collect.HashMap<K,V>; did you forget to inherit a required module?

If you want to use some of the regular java classes you should first consult (note in many cases only subset of methods is implement) :

http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

A good replacement for the Map, Hashtable etc. in gwt is:

TreeMap TreeMap(), TreeMap(Comparator), TreeMap(Map), TreeMap(SortedMap), clear(), comparator(), containsKey(Object), entrySet(), firstKey(), get(Object), headMap(K), lastKey(), put(K, V), remove(Object), size(), subMap(K, K), tailMap(K)

 

keywords:

Searched for inherit com.google.gwt.dev.util.collect 7:37pm
How to use com.google.gwt.dev.util.collect.Ha... - google.com 7:37pm
Google-Web-Toolkit - How to use com.google.gw... - osdir.com 7:38pm
Re: How to use com.google.gwt.dev.util.collec... - gmane.org 7:38pm
JRE (which standard java libraries/classes are available in GWT)
Searched for gwt Vector 7:23pm
Google Web Toolkit - Vector - gwtapps.com 7:23pm
Searched for gwt ArrayList 7:21pm
Google Web Toolkit - ArrayList - gwtapps.com 7:21pm
Searched for com.google.gwt.dev.util.collect. 7:20pm
gwt2 - What purpose do the collection... - stackoverflow.com 7:20pm
Searched for com.google.gwt.dev.util.collect.HashMap 7:19pm
How to use com.google.gwt.dev.util.collect.Ha... - google.com 7:19pm
Searched for gwt Hashtable deprecated 7:16pm
Deprecated List (Google Web Toolkit Javadoc) - googlecode.com 7:16pm
Searched for gwt javadoc 7:11pm
Google Web Toolkit Javadoc - googlecode.com - Viewed 2 times 7:11pm
Searched for gwt/ emul/ java/ util/ Hashtable.java 7:11pm
AbstractHashMap.java - Google Code - google.com 7:11pm
Searched for hashtable gwt
HashMap implementation - Google Web Toolkit... - google.com 7:10pm
Hashtable.java - Google Code - google.com 7:10pm
GWT Custom Seriallizable HashTable - peyotest - blogspot.com

About Neil Rubens

see http://ActiveIntelligence.org
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*