1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_ArrayDeque__
|
5 |
|
|
#define __java_util_ArrayDeque__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/util/AbstractCollection.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class java::util::ArrayDeque : public ::java::util::AbstractCollection
|
14 |
|
|
{
|
15 |
|
|
|
16 |
|
|
void allocateElements(jint);
|
17 |
|
|
void doubleCapacity();
|
18 |
|
|
JArray< ::java::lang::Object * > * copyElements(JArray< ::java::lang::Object * > *);
|
19 |
|
|
public:
|
20 |
|
|
ArrayDeque();
|
21 |
|
|
ArrayDeque(jint);
|
22 |
|
|
ArrayDeque(::java::util::Collection *);
|
23 |
|
|
virtual void addFirst(::java::lang::Object *);
|
24 |
|
|
virtual void addLast(::java::lang::Object *);
|
25 |
|
|
virtual jboolean offerFirst(::java::lang::Object *);
|
26 |
|
|
virtual jboolean offerLast(::java::lang::Object *);
|
27 |
|
|
virtual ::java::lang::Object * removeFirst();
|
28 |
|
|
virtual ::java::lang::Object * removeLast();
|
29 |
|
|
virtual ::java::lang::Object * pollFirst();
|
30 |
|
|
virtual ::java::lang::Object * pollLast();
|
31 |
|
|
virtual ::java::lang::Object * getFirst();
|
32 |
|
|
virtual ::java::lang::Object * getLast();
|
33 |
|
|
virtual ::java::lang::Object * peekFirst();
|
34 |
|
|
virtual ::java::lang::Object * peekLast();
|
35 |
|
|
virtual jboolean removeFirstOccurrence(::java::lang::Object *);
|
36 |
|
|
virtual jboolean removeLastOccurrence(::java::lang::Object *);
|
37 |
|
|
virtual jboolean add(::java::lang::Object *);
|
38 |
|
|
virtual jboolean offer(::java::lang::Object *);
|
39 |
|
|
virtual ::java::lang::Object * remove();
|
40 |
|
|
virtual ::java::lang::Object * poll();
|
41 |
|
|
virtual ::java::lang::Object * element();
|
42 |
|
|
virtual ::java::lang::Object * peek();
|
43 |
|
|
virtual void push(::java::lang::Object *);
|
44 |
|
|
virtual ::java::lang::Object * pop();
|
45 |
|
|
private:
|
46 |
|
|
void checkInvariants();
|
47 |
|
|
jboolean delete$(jint);
|
48 |
|
|
public:
|
49 |
|
|
virtual jint size();
|
50 |
|
|
virtual jboolean isEmpty();
|
51 |
|
|
virtual ::java::util::Iterator * iterator();
|
52 |
|
|
virtual ::java::util::Iterator * descendingIterator();
|
53 |
|
|
virtual jboolean contains(::java::lang::Object *);
|
54 |
|
|
virtual jboolean remove(::java::lang::Object *);
|
55 |
|
|
virtual void clear();
|
56 |
|
|
virtual JArray< ::java::lang::Object * > * toArray();
|
57 |
|
|
virtual JArray< ::java::lang::Object * > * toArray(JArray< ::java::lang::Object * > *);
|
58 |
|
|
virtual ::java::util::ArrayDeque * ArrayDeque$clone();
|
59 |
|
|
private:
|
60 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
61 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
62 |
|
|
public:
|
63 |
|
|
virtual ::java::lang::Object * clone();
|
64 |
|
|
public: // actually package-private
|
65 |
|
|
static jint access$1(::java::util::ArrayDeque *);
|
66 |
|
|
static jint access$2(::java::util::ArrayDeque *);
|
67 |
|
|
static JArray< ::java::lang::Object * > * access$3(::java::util::ArrayDeque *);
|
68 |
|
|
static jboolean access$4(::java::util::ArrayDeque *, jint);
|
69 |
|
|
private:
|
70 |
|
|
JArray< ::java::lang::Object * > * __attribute__((aligned(__alignof__( ::java::util::AbstractCollection)))) elements;
|
71 |
|
|
jint head;
|
72 |
|
|
jint tail;
|
73 |
|
|
static const jint MIN_INITIAL_CAPACITY = 8;
|
74 |
|
|
static const jlong serialVersionUID = 2340985798034038923LL;
|
75 |
|
|
public: // actually package-private
|
76 |
|
|
static jboolean $assertionsDisabled;
|
77 |
|
|
public:
|
78 |
|
|
static ::java::lang::Class class$;
|
79 |
|
|
};
|
80 |
|
|
|
81 |
|
|
#endif // __java_util_ArrayDeque__
|