diff options
Diffstat (limited to 'libjava/java/util/ArrayList.h')
-rw-r--r-- | libjava/java/util/ArrayList.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/libjava/java/util/ArrayList.h b/libjava/java/util/ArrayList.h new file mode 100644 index 000000000..4bbdb1ae0 --- /dev/null +++ b/libjava/java/util/ArrayList.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __java_util_ArrayList__ +#define __java_util_ArrayList__ + +#pragma interface + +#include <java/util/AbstractList.h> +#include <gcj/array.h> + + +class java::util::ArrayList : public ::java::util::AbstractList +{ + +public: + ArrayList(jint); + ArrayList(); + ArrayList(::java::util::Collection *); + virtual void trimToSize(); + virtual void ensureCapacity(jint); + virtual jint size(); + virtual jboolean isEmpty(); + virtual jboolean contains(::java::lang::Object *); + virtual jint indexOf(::java::lang::Object *); + virtual jint lastIndexOf(::java::lang::Object *); + virtual ::java::lang::Object * clone(); + virtual JArray< ::java::lang::Object * > * toArray(); + virtual JArray< ::java::lang::Object * > * toArray(JArray< ::java::lang::Object * > *); + virtual ::java::lang::Object * get(jint); + virtual ::java::lang::Object * set(jint, ::java::lang::Object *); + virtual jboolean add(::java::lang::Object *); + virtual void add(jint, ::java::lang::Object *); + virtual ::java::lang::Object * remove(jint); + virtual void clear(); + virtual jboolean addAll(::java::util::Collection *); + virtual jboolean addAll(jint, ::java::util::Collection *); +public: // actually protected + virtual void removeRange(jint, jint); +private: + void checkBoundInclusive(jint); + void checkBoundExclusive(jint); + void raiseBoundsError(jint); +public: // actually package-private + virtual jboolean removeAllInternal(::java::util::Collection *); + virtual jboolean retainAllInternal(::java::util::Collection *); +private: + void writeObject(::java::io::ObjectOutputStream *); + void readObject(::java::io::ObjectInputStream *); + static const jlong serialVersionUID = 8683452581122892189LL; + static const jint DEFAULT_CAPACITY = 10; + jint __attribute__((aligned(__alignof__( ::java::util::AbstractList)))) size__; + JArray< ::java::lang::Object * > * data; +public: + static ::java::lang::Class class$; +}; + +#endif // __java_util_ArrayList__ |