SortedSet.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_SORTEDSET_H
00002 #define JAVA_UTIL_SORTEDSET_H 1
00003 
00004 #ifndef JAVA_UTIL_SET_H
00005 #include <java_util/Set.h>
00006 #endif /* JAVA_UTIL_SET_H */
00007 #ifndef JAVA_UTIL_COMPARATOR_H
00008 #include <java_util/Comparator.h>
00009 #endif /* JAVA_UTIL_COMPARATOR_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00069     class JAVA_UTIL_SPEC SortedSet : virtual public Set {
00070 
00071     public:
00072 
00110       static Ref<SortedSet> synchronizedSortedSet(const Ref<SortedSet>& c, const Ref<Sync>& sync = 0);
00111 
00128       static Ref<SortedSet> immutableSortedSet(const Ref<SortedSet>& c);
00129 
00137       virtual Ref<Comparator> comparator() const = 0;
00138 
00191       virtual Ref<SortedSet> subSet(const ObjectRef& fromElement, const ObjectRef& toElement) const = 0;
00192 
00228       virtual Ref<SortedSet> headSet(const ObjectRef& toElement) const = 0;
00229 
00265       virtual Ref<SortedSet> tailSet(const ObjectRef& fromElement) const = 0;
00266 
00273       virtual ObjectRef first() const = 0;
00274 
00281       virtual ObjectRef last() const = 0;
00282 
00283     private:
00284 
00285       REGISTER_MEMBERS;
00286 
00287     };
00288 
00289   } // namespace util
00290 } // namespace java
00291 
00292 #endif /* JAVA_UTIL_SORTEDSET_H */

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