summaryrefslogtreecommitdiff
path: root/libjava/java/util/ArrayList.h
blob: 4bbdb1ae0742b59f60998cecbc3886e2f460e39c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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__