TreeMap.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_TREEMAP_H
00002 #define JAVA_UTIL_TREEMAP_H 1
00003 
00004 #ifndef JAVA_UTIL_ABSTRACTMAP_H
00005 #include <java_util/AbstractMap.h>
00006 #endif /* JAVA_UTIL_ABSTRACTMAP_H */
00007 #ifndef JAVA_UTIL_SORTEDMAP_H
00008 #include <java_util/SortedMap.h>
00009 #endif /* JAVA_UTIL_SORTEDMAP_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00080     class JAVA_UTIL_SPEC TreeMap : public AbstractMap, virtual public SortedMap {
00081 
00082     public:
00083 
00097       TreeMap(const Ref<Comparator>& c = 0);
00098 
00113       TreeMap(const Map& m);
00114 
00124       TreeMap(const SortedMap& m);
00125 
00133       virtual jint size() const;
00134 
00142       virtual jboolean isEmpty() const;
00143 
00160       virtual jboolean containsKey(const ObjectRef& key) const;
00161 
00175       virtual jboolean containsValue(const ObjectRef& value) const;
00176 
00201       virtual ObjectRef get(const ObjectRef& key) const;
00202 
00229       virtual ObjectRef put(const ObjectRef& key, const ObjectRef& value);
00230 
00256       virtual ObjectRef remove(const ObjectRef& key);
00257 
00280       virtual void putAll(const Map& t);
00281 
00288       virtual void clear();
00289 
00302       virtual Ref<Set> keySet() const;
00303 
00317       virtual Ref<Collection> values() const;
00318 
00332       virtual Ref<Set> entrySet() const;
00333 
00341       virtual Ref<Comparator> comparator() const;
00342 
00393       virtual Ref<SortedMap> subMap(const ObjectRef& fromKey, const ObjectRef& toKey) const;
00394 
00430       virtual Ref<SortedMap> headMap(const ObjectRef& toKey) const;
00431 
00468       virtual Ref<SortedMap> tailMap(const ObjectRef& fromKey) const;
00469 
00476       virtual ObjectRef firstKey() const;
00477 
00484       virtual ObjectRef lastKey() const;
00485 
00498       virtual jboolean equals(const Object& o) const;
00499 
00510       virtual jint hashCode() const;
00511 
00512       virtual String toString() const;
00513 
00514     private:
00515 
00516       ObjectRef impl;
00517       REGISTER_MEMBERS;
00518 
00519     };
00520 
00521   } // namespace util
00522 } // namespace java
00523 
00524 #endif /* TREEMAP_H */

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