HashMap.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_HASHMAP_H
00002 #define JAVA_UTIL_HASHMAP_H 1
00003 
00004 #ifndef JAVA_UTIL_ABSTRACTMAP_H
00005 #include <java_util/AbstractMap.h>
00006 #endif /* JAVA_UTIL_ABSTRACTMAP_H */
00007 
00008 namespace java {
00009   namespace util {
00010 
00095     class JAVA_UTIL_SPEC HashMap : public AbstractMap {
00096 
00097     public:
00098 
00102       static const jint DEFAULT_INITIAL_CAPACITY;
00103 
00109       static const jint MAXIMUM_CAPACITY;
00110 
00114       static const jfloat DEFAULT_LOAD_FACTOR;
00115 
00116       HashMap(jint initialCapacity = DEFAULT_INITIAL_CAPACITY, jfloat loadFactor = DEFAULT_LOAD_FACTOR);
00117 
00125       HashMap(const Map& m);
00126 
00134       virtual jint size() const;
00135 
00143       virtual jboolean isEmpty() const;
00144 
00161       virtual jboolean containsKey(const ObjectRef& key) const;
00162 
00187       virtual ObjectRef get(const ObjectRef& key) const;
00188 
00215       virtual ObjectRef put(const ObjectRef& key, const ObjectRef& value);
00216 
00242       virtual ObjectRef remove(const ObjectRef& key);
00243 
00266       virtual void putAll(const Map& t);
00267 
00274       virtual void clear();
00275 
00289       virtual Ref<Set> entrySet() const;
00290 
00291     private:
00292       ObjectRef impl;
00293       REGISTER_MEMBERS;
00294 
00295     };
00296 
00297   } // namespace util
00298 } // namespace java
00299 
00300 #endif /* JHASHMAP_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3