HashSet.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_HASHSET_H
00002 #define JAVA_UTIL_HASHSET_H 1
00003 
00004 #ifndef JAVA_UTIL_ABSTRACTSET_H
00005 #include <java_util/AbstractSet.h>
00006 #endif /* JAVA_UTIL_ABSTRACTSET_H */
00007 
00008 namespace java {
00009   namespace util {
00010 
00065     class JAVA_UTIL_SPEC HashSet : public AbstractSet {
00066 
00067     public:
00068 
00072       static const jint DEFAULT_INITIAL_CAPACITY;
00073 
00077       static const jfloat DEFAULT_LOAD_FACTOR;
00078 
00092       HashSet(jint initialCapacity = DEFAULT_INITIAL_CAPACITY, jfloat loadFactor = DEFAULT_LOAD_FACTOR);
00093 
00103       HashSet(const Collection& c);
00104 
00112       virtual jint size() const;
00113 
00121       virtual jboolean isEmpty() const;
00122 
00135       virtual jboolean contains(const ObjectRef& o) const;
00136 
00145       virtual Ref<Iterator> iterator() const;
00146 
00178       virtual jboolean add(const ObjectRef& o);
00179 
00204       virtual jboolean remove(const ObjectRef& o);
00205 
00224       virtual void clear();
00225 
00226     private:
00227 
00228       ObjectRef impl;
00229       REGISTER_MEMBERS;
00230 
00231     };
00232 
00233   } // namespace util
00234 } // namespace java
00235 
00236 #endif /* JHASHSET_H */

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