AbstractList.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_ABSTRACTLIST_H
00002 #define JAVA_UTIL_ABSTRACTLIST_H 1
00003 
00004 #ifndef JAVA_UTIL_ABSTRACTCOLLECTION_H
00005 #include <java_util/AbstractCollection.h>
00006 #endif /* JAVA_UTIL_ABSTRACTCOLLECTION_H */
00007 #ifndef JAVA_UTIL_LIST_H
00008 #include <java_util/List.h>
00009 #endif /* JAVA_UTIL_LIST_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00054     class JAVA_UTIL_SPEC AbstractList
00055       : public AbstractCollection, virtual public List {
00056 
00057     public:
00058 
00063       AbstractList();
00064 
00072       virtual jboolean isEmpty() const;
00073 
00086       virtual jboolean contains(const ObjectRef& o) const;
00087 
00103       virtual Array<ObjectRef> toArray() const;
00104 
00136       virtual jboolean add(const ObjectRef& o);
00137 
00158       virtual void add(jint index, const ObjectRef& element);
00159 
00169       virtual ObjectRef get(jint index) const = 0;
00170 
00190       virtual ObjectRef set(jint index, const ObjectRef& element);
00191 
00216       virtual jboolean remove(const ObjectRef& o);
00217 
00232       virtual ObjectRef remove(jint index);
00233 
00249       virtual jint indexOf(const ObjectRef& o) const;
00250 
00266       virtual jint lastIndexOf(const ObjectRef& o) const;
00267 
00284       virtual jboolean containsAll(const Collection& c) const;
00285 
00310       virtual jboolean addAll(const Collection& c);
00311 
00342       virtual jboolean addAll(jint index, const Collection& c);
00343 
00369       virtual jboolean removeAll(const Collection& c);
00370 
00398       virtual jboolean retainAll(const Collection& c);
00399 
00418       virtual void clear();
00419 
00428       virtual Ref<Iterator> iterator() const;
00429 
00445       virtual Ref<ListIterator> listIterator(jint index = 0) const;
00446 
00481       virtual Ref<List> subList(jint fromIndex, jint toIndex) const;
00482 
00500       virtual jboolean equals(const Object& o) const;
00501 
00516       virtual jint hashCode() const;
00517 
00535       virtual String toString() const;
00536 
00560       virtual void removeRange(jint fromIndex, jint toIndex);
00561 
00562     private:
00563 
00564       REGISTER_MEMBERS;
00565 
00566     };
00567 
00568   } // namespace util
00569 } // namespace java
00570 
00571 #endif /* JAVA_UTIL_ABSTRACTLIST_H */

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