Lines Matching defs:array

47      * Creates a new array with the specified component type and
49 * Invoking this method is equivalent to creating an array
59 * component type of the new array
60 * @param length the length of the new array
61 * @return the new array
74 * Creates a new array
77 * represents a non-array class or interface, the new array
80 * {@code componentType} represents an array class, the
81 * number of dimensions of the new array is equal to the sum
84 * component type of the new array is the component type of
87 * <p>The number of dimensions of the new array must not
88 * exceed the number of array dimensions supported by the
92 * type of the new array
93 * @param dimensions an array of {@code int} representing the dimensions of
94 * the new array
95 * @return the new array
99 * argument is a zero-dimensional array, or if the number of
100 * requested dimensions exceeds the limit on the number of array dimensions
112 * Returns the length of the specified array object, as an {@code int}.
114 * @param array the array
115 * @return the length of the array
117 * an array
119 public static native int getLength(Object array)
124 * array object. The value is automatically wrapped in an object
127 * @param array the array
130 * the specified array
133 * an array
136 * length of the specified array
138 public static native Object get(Object array, int index)
143 * array object, as a {@code boolean}.
145 * @param array the array
147 * @return the value of the indexed component in the specified array
150 * an array, or if the indexed element cannot be converted to the
154 * length of the specified array
157 public static native boolean getBoolean(Object array, int index)
162 * array object, as a {@code byte}.
164 * @param array the array
166 * @return the value of the indexed component in the specified array
169 * an array, or if the indexed element cannot be converted to the
173 * length of the specified array
176 public static native byte getByte(Object array, int index)
181 * array object, as a {@code char}.
183 * @param array the array
185 * @return the value of the indexed component in the specified array
188 * an array, or if the indexed element cannot be converted to the
192 * length of the specified array
195 public static native char getChar(Object array, int index)
200 * array object, as a {@code short}.
202 * @param array the array
204 * @return the value of the indexed component in the specified array
207 * an array, or if the indexed element cannot be converted to the
211 * length of the specified array
214 public static native short getShort(Object array, int index)
219 * array object, as an {@code int}.
221 * @param array the array
223 * @return the value of the indexed component in the specified array
226 * an array, or if the indexed element cannot be converted to the
230 * length of the specified array
233 public static native int getInt(Object array, int index)
238 * array object, as a {@code long}.
240 * @param array the array
242 * @return the value of the indexed component in the specified array
245 * an array, or if the indexed element cannot be converted to the
249 * length of the specified array
252 public static native long getLong(Object array, int index)
257 * array object, as a {@code float}.
259 * @param array the array
261 * @return the value of the indexed component in the specified array
264 * an array, or if the indexed element cannot be converted to the
268 * length of the specified array
271 public static native float getFloat(Object array, int index)
276 * array object, as a {@code double}.
278 * @param array the array
280 * @return the value of the indexed component in the specified array
283 * an array, or if the indexed element cannot be converted to the
287 * length of the specified array
290 public static native double getDouble(Object array, int index)
294 * Sets the value of the indexed component of the specified array
296 * automatically unwrapped if the array has a primitive component
298 * @param array the array
299 * @param index the index into the array
304 * is not an array, or if the array component type is primitive and
308 * the length of the specified array
310 public static native void set(Object array, int index, Object value)
314 * Sets the value of the indexed component of the specified array
316 * @param array the array
317 * @param index the index into the array
322 * is not an array, or if the specified value cannot be converted
323 * to the underlying array's component type by an identity or a
327 * the length of the specified array
330 public static native void setBoolean(Object array, int index, boolean z)
334 * Sets the value of the indexed component of the specified array
336 * @param array the array
337 * @param index the index into the array
342 * is not an array, or if the specified value cannot be converted
343 * to the underlying array's component type by an identity or a
347 * the length of the specified array
350 public static native void setByte(Object array, int index, byte b)
354 * Sets the value of the indexed component of the specified array
356 * @param array the array
357 * @param index the index into the array
362 * is not an array, or if the specified value cannot be converted
363 * to the underlying array's component type by an identity or a
367 * the length of the specified array
370 public static native void setChar(Object array, int index, char c)
374 * Sets the value of the indexed component of the specified array
376 * @param array the array
377 * @param index the index into the array
382 * is not an array, or if the specified value cannot be converted
383 * to the underlying array's component type by an identity or a
387 * the length of the specified array
390 public static native void setShort(Object array, int index, short s)
394 * Sets the value of the indexed component of the specified array
396 * @param array the array
397 * @param index the index into the array
402 * is not an array, or if the specified value cannot be converted
403 * to the underlying array's component type by an identity or a
407 * the length of the specified array
410 public static native void setInt(Object array, int index, int i)
414 * Sets the value of the indexed component of the specified array
416 * @param array the array
417 * @param index the index into the array
422 * is not an array, or if the specified value cannot be converted
423 * to the underlying array's component type by an identity or a
427 * the length of the specified array
430 public static native void setLong(Object array, int index, long l)
434 * Sets the value of the indexed component of the specified array
436 * @param array the array
437 * @param index the index into the array
442 * is not an array, or if the specified value cannot be converted
443 * to the underlying array's component type by an identity or a
447 * the length of the specified array
450 public static native void setFloat(Object array, int index, float f)
454 * Sets the value of the indexed component of the specified array
456 * @param array the array
457 * @param index the index into the array
462 * is not an array, or if the specified value cannot be converted
463 * to the underlying array's component type by an identity or a
467 * the length of the specified array
470 public static native void setDouble(Object array, int index, double d)