1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_Arrays__
|
5 |
|
|
#define __java_util_Arrays__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace lang
|
19 |
|
|
{
|
20 |
|
|
class CPStringBuilder;
|
21 |
|
|
}
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
class java::util::Arrays : public ::java::lang::Object
|
27 |
|
|
{
|
28 |
|
|
|
29 |
|
|
Arrays();
|
30 |
|
|
public:
|
31 |
|
|
static jint binarySearch(JArray< jbyte > *, jbyte);
|
32 |
|
|
static jint binarySearch(JArray< jbyte > *, jint, jint, jbyte);
|
33 |
|
|
static jint binarySearch(JArray< jchar > *, jchar);
|
34 |
|
|
static jint binarySearch(JArray< jchar > *, jint, jint, jchar);
|
35 |
|
|
static jint binarySearch(JArray< jshort > *, jshort);
|
36 |
|
|
static jint binarySearch(JArray< jshort > *, jint, jint, jshort);
|
37 |
|
|
static jint binarySearch(JArray< jint > *, jint);
|
38 |
|
|
static jint binarySearch(JArray< jint > *, jint, jint, jint);
|
39 |
|
|
static jint binarySearch(JArray< jlong > *, jlong);
|
40 |
|
|
static jint binarySearch(JArray< jlong > *, jint, jint, jlong);
|
41 |
|
|
static jint binarySearch(JArray< jfloat > *, jfloat);
|
42 |
|
|
static jint binarySearch(JArray< jfloat > *, jint, jint, jfloat);
|
43 |
|
|
static jint binarySearch(JArray< jdouble > *, jdouble);
|
44 |
|
|
static jint binarySearch(JArray< jdouble > *, jint, jint, jdouble);
|
45 |
|
|
static jint binarySearch(JArray< ::java::lang::Object * > *, ::java::lang::Object *);
|
46 |
|
|
static jint binarySearch(JArray< ::java::lang::Object * > *, jint, jint, ::java::lang::Object *);
|
47 |
|
|
static jint binarySearch(JArray< ::java::lang::Object * > *, ::java::lang::Object *, ::java::util::Comparator *);
|
48 |
|
|
static jint binarySearch(JArray< ::java::lang::Object * > *, jint, jint, ::java::lang::Object *, ::java::util::Comparator *);
|
49 |
|
|
static jboolean equals(JArray< jboolean > *, JArray< jboolean > *);
|
50 |
|
|
static jboolean equals(JArray< jbyte > *, JArray< jbyte > *);
|
51 |
|
|
static jboolean equals(JArray< jchar > *, JArray< jchar > *);
|
52 |
|
|
static jboolean equals(JArray< jshort > *, JArray< jshort > *);
|
53 |
|
|
static jboolean equals(JArray< jint > *, JArray< jint > *);
|
54 |
|
|
static jboolean equals(JArray< jlong > *, JArray< jlong > *);
|
55 |
|
|
static jboolean equals(JArray< jfloat > *, JArray< jfloat > *);
|
56 |
|
|
static jboolean equals(JArray< jdouble > *, JArray< jdouble > *);
|
57 |
|
|
static jboolean equals(JArray< ::java::lang::Object * > *, JArray< ::java::lang::Object * > *);
|
58 |
|
|
static void fill(JArray< jboolean > *, jboolean);
|
59 |
|
|
static void fill(JArray< jboolean > *, jint, jint, jboolean);
|
60 |
|
|
static void fill(JArray< jbyte > *, jbyte);
|
61 |
|
|
static void fill(JArray< jbyte > *, jint, jint, jbyte);
|
62 |
|
|
static void fill(JArray< jchar > *, jchar);
|
63 |
|
|
static void fill(JArray< jchar > *, jint, jint, jchar);
|
64 |
|
|
static void fill(JArray< jshort > *, jshort);
|
65 |
|
|
static void fill(JArray< jshort > *, jint, jint, jshort);
|
66 |
|
|
static void fill(JArray< jint > *, jint);
|
67 |
|
|
static void fill(JArray< jint > *, jint, jint, jint);
|
68 |
|
|
static void fill(JArray< jlong > *, jlong);
|
69 |
|
|
static void fill(JArray< jlong > *, jint, jint, jlong);
|
70 |
|
|
static void fill(JArray< jfloat > *, jfloat);
|
71 |
|
|
static void fill(JArray< jfloat > *, jint, jint, jfloat);
|
72 |
|
|
static void fill(JArray< jdouble > *, jdouble);
|
73 |
|
|
static void fill(JArray< jdouble > *, jint, jint, jdouble);
|
74 |
|
|
static void fill(JArray< ::java::lang::Object * > *, ::java::lang::Object *);
|
75 |
|
|
static void fill(JArray< ::java::lang::Object * > *, jint, jint, ::java::lang::Object *);
|
76 |
|
|
static void sort(JArray< jbyte > *);
|
77 |
|
|
static void sort(JArray< jbyte > *, jint, jint);
|
78 |
|
|
private:
|
79 |
|
|
static jint med3(jint, jint, jint, JArray< jbyte > *);
|
80 |
|
|
static void swap(jint, jint, JArray< jbyte > *);
|
81 |
|
|
static void vecswap(jint, jint, jint, JArray< jbyte > *);
|
82 |
|
|
static void qsort(JArray< jbyte > *, jint, jint);
|
83 |
|
|
public:
|
84 |
|
|
static void sort(JArray< jchar > *);
|
85 |
|
|
static void sort(JArray< jchar > *, jint, jint);
|
86 |
|
|
private:
|
87 |
|
|
static jint med3(jint, jint, jint, JArray< jchar > *);
|
88 |
|
|
static void swap(jint, jint, JArray< jchar > *);
|
89 |
|
|
static void vecswap(jint, jint, jint, JArray< jchar > *);
|
90 |
|
|
static void qsort(JArray< jchar > *, jint, jint);
|
91 |
|
|
public:
|
92 |
|
|
static void sort(JArray< jshort > *);
|
93 |
|
|
static void sort(JArray< jshort > *, jint, jint);
|
94 |
|
|
private:
|
95 |
|
|
static jint med3(jint, jint, jint, JArray< jshort > *);
|
96 |
|
|
static void swap(jint, jint, JArray< jshort > *);
|
97 |
|
|
static void vecswap(jint, jint, jint, JArray< jshort > *);
|
98 |
|
|
static void qsort(JArray< jshort > *, jint, jint);
|
99 |
|
|
public:
|
100 |
|
|
static void sort(JArray< jint > *);
|
101 |
|
|
static void sort(JArray< jint > *, jint, jint);
|
102 |
|
|
private:
|
103 |
|
|
static jint med3(jint, jint, jint, JArray< jint > *);
|
104 |
|
|
static void swap(jint, jint, JArray< jint > *);
|
105 |
|
|
static void vecswap(jint, jint, jint, JArray< jint > *);
|
106 |
|
|
static jint compare(jint, jint);
|
107 |
|
|
static void qsort(JArray< jint > *, jint, jint);
|
108 |
|
|
public:
|
109 |
|
|
static void sort(JArray< jlong > *);
|
110 |
|
|
static void sort(JArray< jlong > *, jint, jint);
|
111 |
|
|
private:
|
112 |
|
|
static jint med3(jint, jint, jint, JArray< jlong > *);
|
113 |
|
|
static void swap(jint, jint, JArray< jlong > *);
|
114 |
|
|
static void vecswap(jint, jint, jint, JArray< jlong > *);
|
115 |
|
|
static jint compare(jlong, jlong);
|
116 |
|
|
static void qsort(JArray< jlong > *, jint, jint);
|
117 |
|
|
public:
|
118 |
|
|
static void sort(JArray< jfloat > *);
|
119 |
|
|
static void sort(JArray< jfloat > *, jint, jint);
|
120 |
|
|
private:
|
121 |
|
|
static jint med3(jint, jint, jint, JArray< jfloat > *);
|
122 |
|
|
static void swap(jint, jint, JArray< jfloat > *);
|
123 |
|
|
static void vecswap(jint, jint, jint, JArray< jfloat > *);
|
124 |
|
|
static void qsort(JArray< jfloat > *, jint, jint);
|
125 |
|
|
public:
|
126 |
|
|
static void sort(JArray< jdouble > *);
|
127 |
|
|
static void sort(JArray< jdouble > *, jint, jint);
|
128 |
|
|
private:
|
129 |
|
|
static jint med3(jint, jint, jint, JArray< jdouble > *);
|
130 |
|
|
static void swap(jint, jint, JArray< jdouble > *);
|
131 |
|
|
static void vecswap(jint, jint, jint, JArray< jdouble > *);
|
132 |
|
|
static void qsort(JArray< jdouble > *, jint, jint);
|
133 |
|
|
public:
|
134 |
|
|
static void sort(JArray< ::java::lang::Object * > *);
|
135 |
|
|
static void sort(JArray< ::java::lang::Object * > *, ::java::util::Comparator *);
|
136 |
|
|
static void sort(JArray< ::java::lang::Object * > *, jint, jint);
|
137 |
|
|
static void sort(JArray< ::java::lang::Object * > *, jint, jint, ::java::util::Comparator *);
|
138 |
|
|
static ::java::util::List * asList(JArray< ::java::lang::Object * > *);
|
139 |
|
|
static jint hashCode(JArray< jlong > *);
|
140 |
|
|
static jint hashCode(JArray< jint > *);
|
141 |
|
|
static jint hashCode(JArray< jshort > *);
|
142 |
|
|
static jint hashCode(JArray< jchar > *);
|
143 |
|
|
static jint hashCode(JArray< jbyte > *);
|
144 |
|
|
static jint hashCode(JArray< jboolean > *);
|
145 |
|
|
static jint hashCode(JArray< jfloat > *);
|
146 |
|
|
static jint hashCode(JArray< jdouble > *);
|
147 |
|
|
static jint hashCode(JArray< ::java::lang::Object * > *);
|
148 |
|
|
static jint deepHashCode(JArray< ::java::lang::Object * > *);
|
149 |
|
|
static jboolean deepEquals(JArray< ::java::lang::Object * > *, JArray< ::java::lang::Object * > *);
|
150 |
|
|
static ::java::lang::String * toString(JArray< jboolean > *);
|
151 |
|
|
static ::java::lang::String * toString(JArray< jbyte > *);
|
152 |
|
|
static ::java::lang::String * toString(JArray< jchar > *);
|
153 |
|
|
static ::java::lang::String * toString(JArray< jshort > *);
|
154 |
|
|
static ::java::lang::String * toString(JArray< jint > *);
|
155 |
|
|
static ::java::lang::String * toString(JArray< jlong > *);
|
156 |
|
|
static ::java::lang::String * toString(JArray< jfloat > *);
|
157 |
|
|
static ::java::lang::String * toString(JArray< jdouble > *);
|
158 |
|
|
static ::java::lang::String * toString(JArray< ::java::lang::Object * > *);
|
159 |
|
|
private:
|
160 |
|
|
static void deepToString(JArray< ::java::lang::Object * > *, ::gnu::java::lang::CPStringBuilder *, ::java::util::HashSet *);
|
161 |
|
|
public:
|
162 |
|
|
static ::java::lang::String * deepToString(JArray< ::java::lang::Object * > *);
|
163 |
|
|
static JArray< jboolean > * copyOf(JArray< jboolean > *, jint);
|
164 |
|
|
static JArray< jboolean > * copyOfRange(JArray< jboolean > *, jint, jint);
|
165 |
|
|
static JArray< jbyte > * copyOf(JArray< jbyte > *, jint);
|
166 |
|
|
static JArray< jbyte > * copyOfRange(JArray< jbyte > *, jint, jint);
|
167 |
|
|
static JArray< jchar > * copyOf(JArray< jchar > *, jint);
|
168 |
|
|
static JArray< jchar > * copyOfRange(JArray< jchar > *, jint, jint);
|
169 |
|
|
static JArray< jdouble > * copyOf(JArray< jdouble > *, jint);
|
170 |
|
|
static JArray< jdouble > * copyOfRange(JArray< jdouble > *, jint, jint);
|
171 |
|
|
static JArray< jfloat > * copyOf(JArray< jfloat > *, jint);
|
172 |
|
|
static JArray< jfloat > * copyOfRange(JArray< jfloat > *, jint, jint);
|
173 |
|
|
static JArray< jint > * copyOf(JArray< jint > *, jint);
|
174 |
|
|
static JArray< jint > * copyOfRange(JArray< jint > *, jint, jint);
|
175 |
|
|
static JArray< jlong > * copyOf(JArray< jlong > *, jint);
|
176 |
|
|
static JArray< jlong > * copyOfRange(JArray< jlong > *, jint, jint);
|
177 |
|
|
static JArray< jshort > * copyOf(JArray< jshort > *, jint);
|
178 |
|
|
static JArray< jshort > * copyOfRange(JArray< jshort > *, jint, jint);
|
179 |
|
|
static JArray< ::java::lang::Object * > * copyOf(JArray< ::java::lang::Object * > *, jint);
|
180 |
|
|
static JArray< ::java::lang::Object * > * copyOfRange(JArray< ::java::lang::Object * > *, jint, jint);
|
181 |
|
|
static JArray< ::java::lang::Object * > * copyOf(JArray< ::java::lang::Object * > *, jint, ::java::lang::Class *);
|
182 |
|
|
static JArray< ::java::lang::Object * > * copyOfRange(JArray< ::java::lang::Object * > *, jint, jint, ::java::lang::Class *);
|
183 |
|
|
static ::java::lang::Class class$;
|
184 |
|
|
};
|
185 |
|
|
|
186 |
|
|
#endif // __java_util_Arrays__
|